export interface StateStorage { load(): Partial; save(t: Partial): void; } export interface UrlStateStorage extends StateStorage { resolveSearchParams(t: Partial): URLSearchParams; } export type UrlStorageSchema = { [key in keyof T]: UrlStorageItem; }; export interface UrlStorageItem { /** Name of the query parameter where the data will be serialized. */ queryParam: string; type?: "string" | "object"; /** Encoding the data should be compressed with. If undefined param will not be compressed. */ compress?: "lz-base64"; } /** * Generic storage mechanism for data in the playground. * @param schema Schema of the data to be serialized in the query * @returns */ export declare function createUrlStateStorage(schema: UrlStorageSchema): UrlStateStorage; //# sourceMappingURL=state-storage.d.ts.map