import { EndpointInterface } from "./EndpointInterface" ; import { OctokitResponse } from "./OctokitResponse" ; import { RequestParameters } from "./RequestParameters" ; import { Route } from "./Route" ; import { Endpoints } from "./generated/Endpoints" ; export interface RequestInterface < D extends object = object > { param { object } endpoint < T = any , O extends RequestParameters = RequestParameters > ( options ) : Promise < OctokitResponse < T > > ; param { string } route param { object } parameters < R extends Route > ( route , options ? ) : R extends keyof Endpoints ? Promise < Endpoints [ R ] [ "response" ] > : Promise < OctokitResponse < any > > ; /**
     * Returns a new `request` with updated route and parameters
     */ defaults : < O extends RequestParameters = RequestParameters > ( newDefaults : O ) => RequestInterface < D & O > ; /**
     * Octokit endpoint API, see  https endpoint : EndpointInterface < D > ; }