import type { RawCoID } from "../ids.js"; import { CoValueKnownState } from "../knownState.js"; import { PeerID } from "../sync.js"; export declare class PeerKnownState { readonly id: RawCoID; readonly peerId: PeerID; private knownState; private optimisticKnownState?; constructor(id: RawCoID, peerId: PeerID); cloneWithoutOptimistic(): PeerKnownState; updateHeader(header: boolean): void; combineWith(value: CoValueKnownState): void; combineOptimisticWith(value: CoValueKnownState): void; /** * Aligns the CoValue known state with the defined payload */ set(payload: CoValueKnownState | "empty"): void; value(): CoValueKnownState; optimisticValue(): CoValueKnownState; } //# sourceMappingURL=PeerKnownState.d.ts.map