import type { ErrorResponse } from '@scalar/helpers/errors/normalize-error'; import { type Static } from '@scalar/typebox'; /** * OpenID Connect Discovery Document (subset) * Represents the metadata fields consumed by the auth selector flow conversion. * * @see https://openid.net/specs/openid-connect-discovery-1_0.html */ declare const OpenIDConnectDiscoverySchema: import("@scalar/typebox").TObject<{ /** URL of the OAuth 2.0 Authorization Endpoint */ authorization_endpoint: import("@scalar/typebox").TOptional; /** URL of the OAuth 2.0 Token Endpoint */ token_endpoint: import("@scalar/typebox").TOptional; /** List of OAuth 2.0 scope values that this server supports */ scopes_supported: import("@scalar/typebox").TOptional>; /** List of OAuth 2.0 grant type values that this server supports */ grant_types_supported: import("@scalar/typebox").TOptional>; /** Supported PKCE code challenge methods (RFC 7636) */ code_challenge_methods_supported: import("@scalar/typebox").TOptional>; }>; export type OpenIDConnectDiscovery = Static; /** * The required scope for OpenID Connect requests. * If this scope is present, the request is an OIDC request; otherwise, it is a standard OAuth 2.0 request. */ export declare const OPENID_SCOPE = "openid"; /** * Fetches the OpenID Connect discovery document from the specified URL. * Supports both full discovery URLs and issuer URLs. * * @param url - The OpenID Connect discovery URL or issuer URL * @returns The discovery document or an error */ export declare const fetchOpenIDConnectDiscovery: (url: string, proxyUrl: string) => Promise>; export {}; //# sourceMappingURL=fetch-openid-connect-discovery.d.ts.map