export declare function createRunInvocationId(): string;
/** Pick a writable path; if `requested` exists, use `name.1`, `name.2`, … before extension tail. */
export declare function resolveAvailableOutputFilePath(workspacePath: string, requestedPath: string): {
    absolutePath: string;
    outputFilePath: string;
};
export declare function attachInvocationEnvelope(body: Record<string, unknown>, invocationId: string, outputFilePath?: string): Record<string, unknown>;
export declare function emitRunInvocationJson(writeLine: (message: string) => void, workspacePath: string, body: Record<string, unknown>, options: {
    invocationId: string;
    outputFileRequest?: string;
    persistRunLog?: {
        effectiveConfig?: Record<string, unknown>;
        command: string;
        commandArgs: Record<string, unknown>;
        startedAt: string;
    };
}): Promise<void>;
