/** * Rotating trivia bank. Add new entries freely; the ticker shuffles per run. * Keep each line under 80 chars (terminal-safe) and factual (no marketing * hype, no emoji unless it's a single Unicode separator). */ export declare const TRIVIA: ReadonlyArray; export interface TriviaTickerOptions { /** Disable the ticker (CI default, --no-trivia, NO_COLOR, non-TTY). */ readonly disabled: boolean; /** Override TRIVIA bank — used by tests. */ readonly trivia?: ReadonlyArray; /** Override delays — used by tests. Default: 1000ms start, 3000ms rotate. */ readonly startDelayMs?: number; readonly rotateMs?: number; /** Stream to write to — used by tests. Default: process.stderr. */ readonly stream?: { write: (s: string) => boolean | void; isTTY?: boolean; }; } /** * Picks the right disabled-state from the environment + flags. Order: * - explicit `--no-trivia` always wins * - non-TTY stderr (piped, redirected, captured): disabled * - CI env var (most CI providers set this): disabled * - NO_COLOR (universal opt-out for any decorative output): disabled */ export declare function shouldDisableTrivia(args: { readonly noTrivia?: boolean; readonly stream?: { isTTY?: boolean; }; readonly env?: NodeJS.ProcessEnv; }): boolean; /** * Start the ticker — call before the async work begins. Returns a stop() * function that the caller MUST invoke before printing anything else to * stderr (the stop clears the ticker line via `\r\x1b[K`). * * If `disabled` is true, returns a no-op stop() and the ticker never fires. */ export declare function startTriviaTicker(opts: TriviaTickerOptions): () => void; //# sourceMappingURL=trivia.d.ts.map