type AsRef = { $$valtioRef: true; }; type Path = (string | symbol)[]; type Op = [op: "set", path: Path, value: unknown, prevValue: unknown] | [op: "delete", path: Path, prevValue: unknown]; type Snapshot = T; declare function proxy(initialObject?: T): T; declare function getVersion(proxyObject: unknown): number | undefined; declare function subscribe(proxyObject: T, callback: (ops: Op[]) => void, notifyInSync?: boolean): () => void; declare function snapshot(proxyObject: T): T; declare function ref(obj: T): Ref; type Ref = T & AsRef; export { type Ref, type Snapshot, getVersion, proxy, ref, snapshot, subscribe };