/** * Performs IndieAuth metadata discovery. * * IndieAuth metadata adopts OAuth 2.0 Authorization Server Metadata [RFC8414], * with the notable difference that discovery of the URL happens via the IndieAuth link relation rather than the * `.well-known` discovery method specified by RFC8414. * * @see [IndieAuth Server Metadata](https://indieauth.spec.indieweb.org/#indieauth-server-metadata) * @see [OAuth 2.0 Authorization Server Metadata](https://www.rfc-editor.org/rfc/rfc8414) */ export declare const serverMetadata: (metadata_endpoint: string) => Promise<{ error: Error; value?: undefined; } | { value: { authorization_response_iss_parameter_supported?: boolean | undefined; code_challenge_methods_supported?: string[] | undefined; grant_types_supported?: ("authorization_code" | "implicit" | "password" | "client_credentials" | "refresh_token" | "urn:ietf:params:oauth:grant-type:jwt-bearer" | "urn:ietf:params:oauth:grant-type:saml2-bearer")[] | undefined; introspection_endpoint?: string | undefined; introspection_endpoint_auth_methods_supported?: string[] | undefined; introspection_endpoint_auth_signing_alg_values_supported?: string[] | undefined; jwks_uri?: string | undefined; op_policy_uri?: string | undefined; op_tos_uri?: string | undefined; registration_endpoint?: string | undefined; response_modes_supported?: ("fragment" | "query")[] | undefined; response_types_supported?: ("code" | "token")[] | undefined; revocation_endpoint?: string | undefined; revocation_endpoint_auth_methods_supported?: string[] | undefined; revocation_endpoint_auth_signing_alg_values_supported?: string[] | undefined; scopes_supported?: string[] | undefined; service_documentation?: string | undefined; token_endpoint_auth_methods_supported?: string[] | undefined; token_endpoint_auth_signing_alg_values_supported?: string[] | undefined; ui_locales_supported?: string[] | undefined; userinfo_endpoint?: string | undefined; authorization_endpoint: string; issuer: string; token_endpoint: string; }; error?: undefined; }>; //# sourceMappingURL=server-metadata.d.ts.map