/** * Typed, SSR-safe localStorage helpers for the database admin UI. * * All keys live under the `agentnative.dbadmin.*` namespace. Per-table grid * state (column widths, sort, filters, page size) is persisted so reopening a * table restores the user's last view. */ import type { DbAdminFilter, DbAdminSort } from "../../db-admin/types.js"; /** Read and JSON-parse a namespaced key, returning `fallback` on any failure. */ export declare function getLS(key: string, fallback: T): T; /** JSON-serialize and write a namespaced key. No-op when storage is absent. */ export declare function setLS(key: string, value: T): void; /** Remove a namespaced key. */ export declare function removeLS(key: string): void; export interface GridState { /** Column name → pixel width. */ columnWidths?: Record; sort?: DbAdminSort[]; filters?: DbAdminFilter[]; pageSize?: number; } export declare function loadGridState(table: string): GridState; export declare function saveGridState(table: string, state: GridState): void; //# sourceMappingURL=storage.d.ts.map