import { type GridState } from '../../core/grid/index.js'; import { type CellDecoration, type GridFeature } from '../../core/types/index.js'; import { type Match } from './find.js'; import type { FindReplaceOptions } from './find-replace.types.js'; export declare class FindReplace { #private; open: boolean; query: string; replacement: string; caseSensitive: boolean; wholeCell: boolean; current: number; replaced: number | null; readonly replace: boolean; readonly hotkeys: boolean; readonly serverReplace: boolean; constructor(grid: GridState, options: FindReplaceOptions); matches: Match[]; get total(): number; get partial(): boolean; get replaceAvailable(): boolean; writableTotal: number; get canReplaceCurrent(): boolean; get canReplaceAll(): boolean; get active(): Match | null; show: () => void; hide: () => void; step: (delta: number) => void; replaceCurrent: () => boolean | Promise; replaceAll: () => boolean | Promise; cellDecoration: (row: number, col: number) => CellDecoration | undefined; } export declare function findReplace(options?: FindReplaceOptions): GridFeature; export declare function getFindReplace(grid: GridState): FindReplace | undefined; declare module '../../core/types/api.js' { interface GridApi { openFind?: () => void; closeFind?: () => void; findNext?: () => void; findPrevious?: () => void; replaceAllMatches?: () => boolean | Promise; } }