/** * Saved Views Store (TanStack DB Version) * * Reactive Svelte store for managing saved table view configurations. * Uses TanStack DB with localStorage persistence for reactive queries. * * Requires @tanstack/db to be installed in the consuming application. */ import type { SavedView, SavedViewInput } from '../types/index.js'; export declare const activeViewId: import("svelte/store").Writable; export declare const activeViewModified: import("svelte/store").Writable; export declare const savedViews: import("svelte/store").Writable; export declare const savedViewsReady: import("svelte/store").Writable; export declare const recentViews: import("svelte/store").Readable; export declare const activeView: import("svelte/store").Readable; /** * View Actions * * CRUD operations for saved views using TanStack DB */ export declare const viewActions: { /** * Save a new view */ save(input: SavedViewInput): Promise; /** * Load an existing view * Updates usage statistics and sets as active */ load(id: string): Promise; /** * Update an existing view */ update(id: string, updates: Partial): Promise; /** * Delete a view */ delete(id: string): Promise; /** * Rename a view */ rename(id: string, newName: string): Promise; /** * Mark active view as modified */ markModified(): void; /** * Clear active view */ clearActive(): void; /** * Check if view name already exists */ nameExists(name: string, excludeId?: string): Promise; /** * Get storage usage stats */ getStorageStats(): Promise<{ count: number; limit: number; percentFull: number; }>; /** * Wait for views to be ready * Returns a promise that resolves when the collection has loaded from localStorage */ waitForReady(): Promise; };