import { SearchFinder } from './features/searching'; /** * Switches the session to another file entry, like less's edit_ifile: * stores the position of the file being left, records the previous * position, and restores the target's saved position. */ export declare function switchToFile(target: number): boolean; /** * Opens a file by name, inserting it into the file list after the * current entry when new, like less's edit(). * * @returns True when the file displayed. */ export declare function openByName(name: string): boolean; /** * Jumps to the current tag match, like command.c after nexttag: * edit the tag's file, then land its line on the -j target. */ export declare function gotoCurrentTag(): void; /** Steps the tag list with t / T, like A_NEXT_TAG/A_PREV_TAG. */ export declare function tagStep(delta: 1 | -1): void; /** * Repeats the search across the file list (ESC-n / ESC-N), like less's * A_T_AGAIN_SEARCH continuing into the next (or previous) files. */ export declare function spanningSearch(reverse: boolean, finder?: SearchFinder | null, sourceEnd?: (() => boolean) | null): void; export declare function stepFile(delta: 1 | -1): void; export declare function removeFile(): void; /** * Opens the files named at the `Examine: ` prompt, like less's * edit_list: every name enters the list after the current file, * unopenable ones drop out, and the first good one becomes current. */ export declare function runExamine(): void; /** * Runs a shell command with the terminal restored, like less's * lsystem: echoes the command (unless it starts with `-`), runs it * through $SHELL, then repaints and reports the done message. */ export declare function runShell(cmd: string, doneMsg: string | null, input?: string, onDone?: () => boolean): void; export declare function runPipe(cmd: string): void; /** Bytes of pipe data currently held, past recycles excluded. */ /** * Edits the current file with $VISUAL or $EDITOR at the middle * displayed line, then re-examines it, like less's LESSEDIT proto. */ export declare function runEditor(): void; export declare function runMiscInput(kind: '!' | '#' | '|' | 's' | 'S' | '+', text: string): void; export declare function applyFilter(): void;