import { type Database } from "./database.js"; import type { ConnectionCredentialForBroker } from "./connection-token-resolver.js"; /** Serialize rotating-token exchange across workers, not only within one process. */ export declare function withConnectionRefreshLock(db: Database, credential: ConnectionCredentialForBroker, work: (lockedDb: Database) => Promise): Promise;