import { type CoValueCore } from "../exports.js"; import { CoValueKnownState } from "../knownState.js"; /** * Track how much data we have stored inside our storage * and provides the API to wait for the data to be fully stored. */ export declare class StorageKnownState { knownStates: Map; getKnownState(id: string): CoValueKnownState; /** * Get a cached knownState if it exists and has a header. * Unlike getKnownState, this doesn't create an empty state if one doesn't exist. */ getCachedKnownState(id: string): CoValueKnownState | undefined; setKnownState(id: string, knownState: CoValueKnownState): void; handleUpdate(id: string, knownState: CoValueKnownState): void; waitForSyncRequests: Map void; }>>; waitForSync(id: string, coValue: CoValueCore): Promise; deleteKnownState(id: string): void; clear(): void; } //# sourceMappingURL=knownState.d.ts.map