/** The parts of an authorization server's RFC 8414 or OpenID metadata a native client signs in with. */ export interface AuthorizationServerMetadata { issuer: string; authorization_endpoint: string; token_endpoint: string; code_challenge_methods_supported?: string[]; authorization_response_iss_parameter_supported?: boolean; } /** Where an issuer's metadata may be, in the order the MCP authorization spec tries them (RFC 8414 §3.1, OpenID Discovery §4). */ export declare function authorizationServerMetadataUrls(issuer: string): string[]; /** * The metadata of the authorization server `issuer` names: the first document found whose `issuer` is that issuer, * character for character (RFC 8414 §3.3), with endpoints this client may send credentials to (see * {@link assertSecureEndpoint}), well-typed security fields, and S256 PKCE when it lists methods. */ export declare function discoverAuthorizationServer(issuer: string): Promise; /** HTTPS, or HTTP to a loopback host: an issuer, which may be a local development server. */ export declare function assertSecureUrl(url: string): void; /** * An endpoint of `issuer` this client sends codes, verifiers, refresh tokens or a client secret to: HTTPS, or HTTP to * a loopback host only when the issuer is itself an HTTP loopback URL, a local development server. An https issuer's * metadata cannot send credentials in the clear to a port on this machine. */ export declare function assertSecureEndpoint(url: string, issuer: string): void; export declare function requestWithTimeout(url: string, init: RequestInit): Promise; //# sourceMappingURL=authorization-server-metadata.d.ts.map