/** * postgres-mcp - Authorization Server Discovery * * RFC 8414 Authorization Server Metadata discovery. */ import type { AuthServerDiscoveryConfig, AuthorizationServerMetadata } from "./types.js"; /** * Authorization Server Discovery (RFC 8414) */ export declare class AuthorizationServerDiscovery { private readonly config; private metadataCache; private cacheTime; constructor(config: AuthServerDiscoveryConfig); /** * Discover authorization server metadata */ discover(): Promise; /** * Get JWKS URI from discovered metadata */ getJwksUri(): Promise; /** * Get token endpoint from discovered metadata */ getTokenEndpoint(): Promise; /** * Get registration endpoint (if available) */ getRegistrationEndpoint(): Promise; /** * Check if auth server supports a specific grant type */ supportsGrantType(grantType: string): Promise; /** * Invalidate cache */ invalidateCache(): void; } /** * Create an authorization server discovery instance */ export declare function createAuthServerDiscovery(config: AuthServerDiscoveryConfig): AuthorizationServerDiscovery; //# sourceMappingURL=authorization-server-discovery.d.ts.map