/** 1-based line/column of a caret index within `text` (for the status bar). */ export declare const getCursorPosition: (text: string, caretIndex: number) => { line: number; col: number; }; /** * Index of the next `query` occurrence at/after `fromIndex`, wrapping to the * start once, case-insensitively. Returns -1 if not present (or `query` is * empty). Mirrors the classic Notepad "Find Next" wrap-around. */ export declare const findNextIndex: (text: string, query: string, fromIndex: number) => number; /** Count of non-overlapping `query` occurrences in `text` (case-insensitive). */ export declare const countOccurrences: (text: string, query: string) => number; /** Replace every occurrence of `query` with `replaceWith` (case-insensitive). */ export declare const replaceAll: (text: string, query: string, replaceWith: string) => string; /** Whether two strings are equal ignoring case (for single Replace). */ export declare const equalsIgnoreCase: (a: string, b: string) => boolean;