type Env = Record; /** Returns the detected harness name, or null when none match. */ export declare function detectHarness(env?: Env): string | null; export type RuntimeEnv = 'container' | 'desktop'; interface FsApi { existsSync: (path: string) => boolean; readFileSync: (path: string, encoding: 'utf8') => string; } /** Fails open to desktop: a probe error must never break telemetry. */ export declare function detectRuntimeEnv(env?: Env, fsApi?: FsApi): RuntimeEnv; interface HumanInitiatedStreams { stdin: { isTTY?: boolean; }; stdout: { isTTY?: boolean; }; } /** * True only when both ends are a real terminal — a human at a prompt. Agents * shell out without a TTY, so this reads false for every harness above and is * the free agent-vs-human signal behind `X-TF-Human-Initiated`. */ export declare function detectHumanInitiated(streams?: HumanInitiatedStreams): boolean; export {};