import { type GridState } from '../../core/grid/index.js'; import { type GridFeature } from '../../core/types/index.js'; import type { SavedView, SavedViewsOptions } from './saved-views.types.js'; export declare class SavedViews { #private; views: SavedView[]; activeId: string | null; readonly key: string; constructor(grid: GridState, options: SavedViewsOptions); get active(): SavedView | null; get modified(): boolean | null; save: (name: string) => SavedView | null; update: (id: string) => boolean; rename: (id: string, name: string) => boolean; remove: (id: string) => boolean; apply: (id: string) => boolean; revert: () => boolean; shareToken: () => Promise; shareLink: (base?: string) => Promise; applyToken: (token: string) => Promise; applyLink: (href?: string) => Promise; } export declare function savedViews(options?: SavedViewsOptions): GridFeature; export declare function getSavedViews(grid: GridState): SavedViews | undefined; declare module '../../core/types/api.js' { interface GridApi { saveView?: (name: string) => unknown; applyView?: (id: string) => boolean; removeView?: (id: string) => boolean; shareGridLink?: (base?: string) => Promise; applyGridLink?: (href?: string) => Promise; } }