/** * Defensive parser for `data-ilha-state` / `data-ilha-props` snapshot * attributes on the router side. Mirrors the core ilha guards: size cap, * plain-object check, depth cap, and prototype-key stripping. Returns * undefined (degrade gracefully) on any failure. */ /** JSON leaf values accepted in SSR hydrate snapshots. */ export type SnapshotLeaf = string | number | boolean | null; /** JSON values accepted in SSR hydrate snapshots. */ export type SnapshotValue = SnapshotLeaf | SnapshotObject | readonly SnapshotValue[]; export interface SnapshotObject { readonly [key: string]: SnapshotValue | undefined; } export declare const sanitizeSnapshotObject: (value: T) => SnapshotObject | undefined; export declare const parseSnapshotAttr: (raw: string) => SnapshotObject | undefined;