import { PptxSlide } from 'pptx-viewer-core'; import { FindResult } from 'pptx-viewer-shared'; /** * Reactive Find & Replace panel state for the Home tab's Editing group. * Wraps the shared, framework-agnostic `render/find-replace` functions * (pure slide-array search/replace); this class owns only the panel's UI * state (query, current match, open/closed) and routes every replace through * the host's history-tracked commit so undo/redo cover it. */ export interface FindReplaceDeps { getSlides(): readonly PptxSlide[]; /** Commit a fully-replaced slide array (pushes history, marks dirty). */ commitSlides(next: PptxSlide[]): void; /** Called with the match's slide/element so the host can navigate to it. */ onNavigate?(slideIndex: number, elementId: string): void; } export declare class FindReplaceState { #private; open: boolean; query: string; replacement: string; matchCase: boolean; results: FindResult[]; index: number; constructor(deps: FindReplaceDeps); get hasResults(): boolean; get matchCount(): number; toggle(): void; close(): void; /** Re-run the search from the current query/matchCase and jump to the first match. */ search(): void; next(): void; prev(): void; /** Replace the current match, then refresh the result set. */ replaceCurrent(): void; /** Replace every match of the current query, then refresh the result set. */ replaceAll(): void; } //# sourceMappingURL=editor-find-replace.svelte.d.ts.map