import type { ActorIdentifier } from '@atcute/lexicons'; import type { OAuthPrompt } from '@atcute/oauth-types'; import type { Session } from '../types/token.js'; export type AuthorizeTargetOptions = { type: 'account'; identifier: ActorIdentifier; } | { type: 'pds'; serviceUrl: string; }; export interface AuthorizeOptions { target: AuthorizeTargetOptions; scope: string; state?: unknown; prompt?: OAuthPrompt | (string & {}); display?: 'page' | 'popup' | 'touch' | 'wap'; locale?: string; } /** * Create authentication URL for authorization * @param options * @returns URL to redirect the user for authorization */ export declare const createAuthorizationUrl: (options: AuthorizeOptions) => Promise; /** * Finalize authorization * @param params Search params * @returns Session object, which you can use to instantiate user agents */ export declare const finalizeAuthorization: (params: URLSearchParams) => Promise<{ session: Session; state: {} | null; }>; //# sourceMappingURL=exchange.d.ts.map