import { Client } from '@atcute/client'; import { DidDocument } from '@atcute/identity'; export interface ServiceResolverOptions { plcDirectory?: string; identityService?: string; slingshotBaseUrl?: string; fetch?: typeof fetch; } /** * Default configuration values for AT Protocol services. * These can be overridden via AtProtoProvider props. */ export declare const DEFAULT_CONFIG: { readonly plcDirectory: "https://plc.directory"; readonly identityService: "https://public.api.bsky.app"; readonly slingshotBaseUrl: "https://slingshot.microcosm.blue"; readonly blueskyAppviewService: "https://public.api.bsky.app"; readonly blueskyAppBaseUrl: "https://bsky.app"; readonly tangledBaseUrl: "https://tangled.org"; readonly constellationBaseUrl: "https://constellation.microcosm.blue"; }; export declare const SLINGSHOT_BASE_URL = "https://slingshot.microcosm.blue"; export declare const normalizeBaseUrl: (input: string) => string; export declare class ServiceResolver { private plc; private slingshot; private didResolver; private handleResolver; private fetchImpl; constructor(opts?: ServiceResolverOptions); resolveDidDoc(did: string): Promise; pdsEndpointForDid(did: string): Promise; getSlingshotUrl(): string; resolveHandle(handle: string): Promise; } export interface CreateClientOptions extends ServiceResolverOptions { did?: string; service?: string; } export declare function createAtprotoClient(opts?: CreateClientOptions): Promise<{ rpc: Client; service: string; resolver: ServiceResolver; }>; export type AtprotoClient = Awaited>["rpc"];