import { ReplicaType } from '@verdant-web/common'; import { Context } from '../internal.js'; export interface ServerSyncEndpointProviderConfig { /** * The location of the endpoint used to retrieve an * authorization token for the client. */ authEndpoint?: string; /** * A custom function to retrieve authorization * data. Use whatever fetching mechanism you want. */ fetchAuth?: () => Promise<{ accessToken: string; }>; } export interface SyncTokenInfo { url: string; fileUrl: string; type: ReplicaType; userId: string; libraryId: string; role?: string; } export declare class ServerSyncEndpointProvider { private config; private ctx; private cached; tokenInfo: SyncTokenInfo | null; get type(): ReplicaType; constructor(config: ServerSyncEndpointProviderConfig, ctx: Context); getEndpoints: () => Promise<{ http: string; websocket: string; files: string; token: string; }>; clearCache: () => void; }