/** Returns the prompt prototype for a style (0 short, 1 medium, 2 long). */ export declare const prProto: (type: number) => string; /** The `=` command prototype. */ export declare const eqProto: () => string; /** The help prompt prototype. */ export declare const hProto: () => string; /** The F command waiting prompt prototype. */ export declare const wProto: () => string; /** * Stores a -P prompt definition, like less's opt__P: the first char * selects which prototype is changed. * * @param text - The raw -P answer (e.g. `s`, `m`, `M`, `=`, `h` prefix). */ export declare function setProto(text: string): void; /** * Restores the built-in prototypes for a fresh pager run, like less's * init_prompt: more mode replaces the medium prompt with --More--. */ export declare function resetProtos(): void; /** * Expands a prompt prototype string, like less's pr_expand. * * - `%x` escapes expand pager state (file name, line, percent, ...), * `?x...:....` are conditionals ended by `.`, and `\` takes the next * character literally. * * @param content - Full content lines. * @param proto - The prototype string. * @returns The expanded message. */ export declare function prExpand(content: string[], proto: string): string; /** * Escapes shell metacharacters, like less's shell_quote on unix: each * metachar takes a backslash, a newline is surrounded by the -" quote * characters. */ export declare function shellQuote(name: string): string; /** Expands LESSEDIT for the regular session through the full prompt engine. */ export declare function editCommand(content: string[]): string; /** * Expands the edit-oriented prompt fields for a windowed file, whose * contents intentionally are not materialized into the regular file table. */ export declare function windowedEditCommand(filename: string, line: number | null): string;