import type { ToolExecutionContext } from "../../tool/index.js"; /** Input payload for hosted child written artifact path. */ export interface HostedChildWrittenArtifactPathInput { toolName: string; toolInput: unknown; toolOutput: unknown; writingToolNames?: readonly string[]; } /** Public API contract for hosted child file write fallback tool execute. */ export type HostedChildFileWriteFallbackToolExecute = (toolInput: unknown, execOptions?: ToolExecutionContext) => Promise | unknown; /** Public API contract for hosted child file write fallback tool. */ export interface HostedChildFileWriteFallbackTool { execute?: HostedChildFileWriteFallbackToolExecute; } /** Public API contract for hosted child file write fallback logger. */ export interface HostedChildFileWriteFallbackLogger { info?: (message: string, metadata?: Record) => void; } /** Applies hosted child rerunnable file write fallbacks. */ export declare function withHostedChildRerunnableFileWriteFallbacks(input: { tools: Record; createToolName?: string; updateToolName?: string; logger?: HostedChildFileWriteFallbackLogger; }): Record; /** Check whether a prompt asks for a hosted child text project artifact. */ export declare function isHostedChildTextProjectArtifactPrompt(prompt: string): boolean; /** Result returned from is hosted child create file already exists. */ export declare function isHostedChildCreateFileAlreadyExistsResult(result: unknown): boolean; /** Return hosted child written artifact path. */ export declare function getHostedChildWrittenArtifactPath(input: HostedChildWrittenArtifactPathInput): string | null; /** Normalizes hosted child artifact path. */ export declare function normalizeHostedChildArtifactPath(path: string): string | null; //# sourceMappingURL=child-artifact-support.d.ts.map