import type { ActorResolver } from '@atcute/identity-resolver'; import { type OAuthDatabase } from './store/db.js'; import type { ClientAssertionFetcher } from './types/client-assertion.js'; export declare let CLIENT_ID: string; export declare let REDIRECT_URI: string; export declare let fetchClientAssertion: ClientAssertionFetcher | undefined; export declare let database: OAuthDatabase; export declare let identityResolver: ActorResolver; export interface ConfigureOAuthOptions { /** * client metadata, necessary to drive the whole request */ metadata: { client_id: string; redirect_uri: string; }; /** resolves actor identifiers into identity metadata */ identityResolver: ActorResolver; /** * optional function to fetch DPoP-bound client assertions from your backend. */ fetchClientAssertion?: ClientAssertionFetcher; /** * name that will be used as prefix for storage keys needed to persist authentication. * @default "atcute-oauth" */ storageName?: string; } export declare const configureOAuth: (options: ConfigureOAuthOptions) => void; //# sourceMappingURL=environment.d.ts.map