export type CliMode = 'interactive' | 'ci' | 'agent'; /** * Reads an environment flag: false for an explicit off (0, false, no, off), * true for any other value, undefined when unset or empty. */ export declare function readEnvFlag(value: string | undefined): boolean | undefined; /** True for a set environment flag: any value except empty or an explicit off (0, false, no, off). */ export declare function isEnvFlagSet(value: string | undefined): boolean; export declare function detectOperator(fileExists?: (path: string) => boolean): string; export declare const OPERATOR_TO_PLATFORM: Record; export declare function platformForOperator(operator: string): string | undefined; /** * For commands a person runs directly, such as `checkly login` showing its * code or `checkly logout` asking for confirmation: terminals on stdin and on * stderr, where questions and instructions render (stdout may still be piped, * e.g. into `tee`), or CHECKLY_CLI_MODE=interactive set explicitly, for * terminals Node does not recognise as one (e.g. mintty) and for wrappers and * tests that answer through pipes. */ export declare function isPersonAtTerminal(): boolean; /** * For a login an authenticated command starts on its own: only with terminals * on stdin and on stderr, where an inline login prints everything it shows. * Anything less (pipes, redirects, an explicit mode included) fails fast with * the hint to log in, so an unattended run never waits on a code nobody sees. */ export declare function canLogInInline(): boolean; export declare function detectCliMode(fileExists?: (path: string) => boolean): CliMode;