import { URL } from 'url'; import type { AuthProfile } from '../types.js'; export interface CallbackResult { code: string; state?: string; iss?: string; } export declare function explainOAuthRegistrationFailure(error: unknown, context: { serverUrl: string; reachedAuthorization: boolean; }): unknown; export interface OAuthFlowResult { profile: AuthProfile; success: boolean; } export declare function findCallbackPort(callbackPort?: number): Promise; export declare function runInteractiveAuthorization(authorizationUrl: URL, port: number, context: { serverUrl: string; profileName: string; scope?: string; }): Promise; export declare function performOAuthFlow(serverUrl: string, profileName: string, scope?: string, clientCredentials?: { clientId?: string; clientSecret?: string; clientMetadataUrl?: string; }, callbackPort?: number, callbackHost?: string): Promise; //# sourceMappingURL=oauth-flow.d.ts.map