export interface AuthorizationCodeCallbackReceiver { register(input: { redirectUris: string[]; state: string; expiresAt: Date; onCallback(result: { code?: string; error?: string; }): Promise | void; }): Promise<{ redirectUri: string; close(): void; }>; } type RegistrationInput = Parameters[0]; /** Receives authorization codes locally; credential exchange belongs to the authenticated caller. */ export declare class LoopbackAuthorizationCallbackReceiver implements AuthorizationCodeCallbackReceiver { private readonly listeners; private pending; register(input: RegistrationInput): ReturnType; private registerSerial; private handle; } export {};