import type { AuthorizationServerMetadata } from "./discovery.js"; import type { TokenResponse } from "./tokens.js"; export interface AuthorizationCodeFlowOptions { metadata: AuthorizationServerMetadata; clientId: string; clientSecret?: string; scope: string; preferredPorts?: number[]; fetchImpl?: typeof fetch; openBrowser?: (url: string) => Promise; onAuthorizationUrl?: (url: string) => void; } export declare function performAuthorizationCodeFlow(options: AuthorizationCodeFlowOptions): Promise; export declare function refreshAccessToken(opts: { tokenEndpoint: string; clientId: string; clientSecret?: string; refreshToken: string; scope?: string; fetchImpl?: typeof fetch; }): Promise;