export interface LoopbackRedirectOptions { /** A port, or an inclusive range to take the first free one from; `0` (the default) is any free port. */ port?: number | readonly [number, number]; path: string; timeoutMs: number; state: string; issuer: string; /** The server promised an RFC 9207 `iss` on every authorization response. */ issRequired: boolean; } export interface LoopbackRedirect { redirectUri: string; /** The authorization code, once the browser comes back with one. */ code: Promise; close(): void; } /** A one-shot HTTP listener on 127.0.0.1 for the authorization response (RFC 8252 ยง7.3). */ export declare function listenForRedirect(options: LoopbackRedirectOptions): Promise; //# sourceMappingURL=loopback-redirect.d.ts.map