/** * get-history rekey: adopt a client-supplied web-* thread only when this * account owns it (or it is still unclaimed). Disk ownerUserId wins even * when the in-memory token map is empty after a process restart. */ export interface ThreadOwnerStore { get(threadId: string): string | undefined; set(threadId: string, tokenId: string): void; delete(threadId: string): void; rekey?(oldId: string, newId: string): void; } export declare function applyWebHistoryRekey(opts: { wantedThreadId: string; clientId: string; accountUserId?: string; tokenId?: string; threadOwners?: ThreadOwnerStore; onAdopt: (nextThreadId: string) => void; onRefuse: () => Promise; }): Promise<'refused' | 'ok'>; //# sourceMappingURL=ws-history-rekey.d.ts.map