/** * Terminal pager for CLI output (Issue #1623, 案B). * * `commandmate capture --pane` prints a whole transcript, which is unreadable if * it just scrolls past. When stdout is a terminal the text goes through a pager; * when it is a pipe or a file it must stay plain so `| grep` and `> file` behave. */ /** * Resolve the pager command line. * * `CM_PAGER` wins so a user can page CommandMate output differently from the * rest of their shell; `PAGER` is the conventional fallback. An explicitly empty * value means "no pager" and is honoured rather than overridden. * * @returns argv for the pager, or undefined when paging is disabled */ export declare function resolvePagerCommand(): string[] | undefined; /** * Print `text`, paging it when stdout is an interactive terminal. * * Falls back to plain stdout whenever paging is not possible or not wanted: * non-TTY stdout, no pager configured, or a pager that could not be spawned (so * a missing `less` degrades to readable output instead of an error). * * @param text - Content to display */ export declare function printMaybePaged(text: string): void; //# sourceMappingURL=pager.d.ts.map