/** Extract run-dir artifact paths from a task string. */ export declare function extractArtifactPaths(taskText: string, runId: string): string[]; /** Called from the tool_call hook for every subagent/subagent_resume call. * Never throws; steps aside on any problem. */ export declare function recordSpawnArtifacts(toolName: string, input: Record | undefined, cwd: string): void; /** Called from the input hook. When a subagent completion notice arrives * during an active run and its recorded artifact is missing/empty, returns * the text to append. Returns undefined when everything is fine or unknown. */ export declare function completionWarning(text: string, cwd: string): string | undefined; /** Test helper: clear the in-memory spawn record. */ export declare function resetCompletionGuard(): void;