import pc from "picocolors"; type RunTextEnv = Readonly>; interface PrintRunTextOptions { readonly env?: RunTextEnv; readonly stdoutIsData?: boolean; } export declare function isGitHubActions(env?: RunTextEnv): boolean; export declare function guardRunText(text: string, env?: RunTextEnv): string; export declare function guardJsonText(serialized: string, env?: RunTextEnv): string; /** Marks this process's stdout as carrying a JSON document or protocol; returns the release. */ export declare function reserveStdoutForData(): () => void; export declare function printRunText(text: string, print?: (text: string) => void, options?: PrintRunTextOptions): void; type LogColors = ReturnType; type LogLineLevel = 'error' | 'warn' | 'info' | 'debug'; interface LogLine { tag: string; message: string; level?: LogLineLevel; data?: Record; time?: Date; } export declare function isCi(env?: RunTextEnv): boolean; export declare function colorEnabled(env: RunTextEnv, isTTY: boolean): boolean; export declare function colorsFor(stream: { isTTY?: boolean; }, env?: RunTextEnv): LogColors; export declare function formatLogLine(line: LogLine, colors: LogColors): string; export declare function printLogLine(line: LogLine, options?: { env?: RunTextEnv; to?: 'stdout' | 'stderr'; }): void; export type { LogColors, LogLine, LogLineLevel, PrintRunTextOptions, RunTextEnv };