@tanstack/db
Version:
A reactive client store for building super fast apps on sync
19 lines (18 loc) • 938 B
TypeScript
import { SyncPersistenceCapabilityV1 } from './types.js';
/**
* @internal
* Unstable cross-package protocol for persistence-aware collection adapters.
* Application code should not construct or depend on this value directly.
*/
export declare const SYNC_PERSISTENCE_PROTOCOL: "@tanstack/db/sync-persistence";
/** @internal See {@link SYNC_PERSISTENCE_PROTOCOL}. */
export declare const SYNC_PERSISTENCE_VERSION: 1;
/**
* Validates the cross-package structural persistence protocol before a sync
* adapter uses it. Null explicitly means that the collection has no
* persistence capability; undefined means a wrapper dropped the required
* field. Any advertised capability must be complete.
*
* @internal This is adapter infrastructure, not an application API.
*/
export declare function validateSyncPersistenceCapability<TKey extends string | number = string | number>(value: unknown): SyncPersistenceCapabilityV1<TKey> | null;