export type AgentStdoutDumpReason = "complete" | "exit" | "fail"; export type AgentStdoutDumpInput = { backend: string; sessionId?: string; reason: AgentStdoutDumpReason; cmd: string; args: string[]; cwd?: string; stdinLength?: number; stdinPreview?: string; stdout: string; stderr?: string; durationMs: number; exitCode?: number | null; signal?: string | null; linesCollected?: number; }; export declare function isAgentStdoutDumpEnabled(): boolean; export declare function getAgentStdoutLogFilePath(niubotHome?: string): string; /** 将一轮 agent 子进程的完整 stdout 追加到独立日志(需 NIUBOT_DEBUG_AGENT_STDOUT=1)。 */ export declare function dumpAgentStdout(input: AgentStdoutDumpInput): string | undefined;