import { OAuthStrategy } from "./types.js"; //#region src/oauth/strategies.d.ts /** * Register a strategy. Returns an unsubscribe function so tests can * tear the registration down. * * @stable */ declare function registerOAuthStrategy(strategy: OAuthStrategy): () => void; /** * Find every strategy that matches the given server descriptor. The * matching is `OR` - either the URL or the ID regex matching is * enough to enrol the strategy. * * @stable */ declare function findOAuthStrategies(args: { readonly serverId: string; readonly serverUrl: string; }): ReadonlyArray; /** * Snapshot of the registered strategies. Used by `getOAuthStatus()`. * * @stable */ declare function listOAuthStrategies(): ReadonlyArray; /** * Reset the registry. Used by tests. * * @experimental */ declare function _resetOAuthStrategiesForTesting(): void; //#endregion export { _resetOAuthStrategiesForTesting, findOAuthStrategies, listOAuthStrategies, registerOAuthStrategy }; //# sourceMappingURL=strategies.d.ts.map