import http from "node:http";
export interface OAuthLandingPage {
    title: string;
    body: string;
}
export interface LoopbackAuthorizationOptions {
    openBrowser?: (url: string) => Promise<void>;
    readLine?: () => Promise<string>;
    createServer?: () => http.Server;
    landingPage?: OAuthLandingPage;
    callbackPath?: string;
}
export interface LoopbackAuthorizationSession {
    redirectUri: string;
    waitForCode(authorizationUrl: string): Promise<string>;
    close(): void;
}
export declare function createLoopbackAuthorizationSession(options?: LoopbackAuthorizationOptions): Promise<LoopbackAuthorizationSession>;
export declare function extractCodeFromInput(input: string): string | null;
export declare function buildSuccessPage(landingPage?: OAuthLandingPage): string;
