export declare class OpenAuthHandler { #private; private constructor(); /** * Create an {@link OpenAuthHandler}. * * @param secret - HMAC shared secret (same as `DWN_PROVIDER_AUTH_JWT_SECRET`). * @param issuer - JWT issuer claim (typically the DWN server's base URL). * @param tokenTtlSeconds - Registration token lifetime in seconds. Default: 1 year. */ static create(secret: string, issuer: string, tokenTtlSeconds?: number): OpenAuthHandler; /** * Handle `GET /provider-auth/authorize`. * * In open-auth mode this immediately generates a code and redirects back * to the `redirect_uri` with `code` and `state` query parameters. * No user interaction is required. */ handleAuthorize(url: URL): Response; /** * Handle `POST /provider-auth/token`. * * Exchanges an authorization code for a JWT registration token. * Request body: `{ code: string, redirectUri: string }`. */ handleToken(req: Request): Promise; /** * Handle `POST /provider-auth/refresh`. * * Exchanges a refresh token for a new registration token. * Request body: `{ refreshToken: string }`. */ handleRefresh(req: Request): Promise; /** Stops the periodic cleanup timer and clears all pending codes. */ destroy(): void; } //# sourceMappingURL=open-auth-handler.d.ts.map