/** * Client-side persistence for the SQL editor surface of the dev-mode database * admin. Everything lives in `localStorage` under the `agentnative.dbadmin.sql.*` * namespace and is SSR-safe (no-ops when `window` is unavailable). * * Two stores live here: * - Query HISTORY: a capped, de-duplicated list of executed SQL strings, most * recent first. Useful for re-loading a previous query into the editor. * - Saved SNIPPETS: named, reusable queries the user explicitly saved. */ export declare function loadHistory(): string[]; /** * Prepend an executed query to the history. Trims whitespace, skips empties, * de-dupes against the most-recent entry, and caps the list length. Returns the * updated list so callers can update their in-memory copy without re-reading. */ export declare function pushHistory(sql: string): string[]; export declare function clearHistory(): void; export interface SqlSnippet { id: string; name: string; sql: string; } export declare function loadSnippets(): SqlSnippet[]; /** * Create or update a snippet. Pass an `id` to update an existing one; omit it to * create a new snippet. Returns the updated list. */ export declare function saveSnippet(input: { id?: string; name: string; sql: string; }): SqlSnippet[]; export declare function deleteSnippet(id: string): SqlSnippet[]; //# sourceMappingURL=sql-storage.d.ts.map