import type { DevToolsSys } from "../types"; import type { CLIArgs } from "./index"; export interface PullPrototypeResult { projectDir: string; prototypesRoot: string; apiKey: string; } export declare function fetchChatHistory(options: { projectId: string; branchName: string; apiKey: string; authHeaders: Record; userId?: string; }): Promise<{ userPrompt: string; title?: string; }[]>; export declare function pullPrototype(options: { projectId: string; branchName: string; apiKey: string; authHeaders: Record; userId?: string; /** When true, enables CLI output (spinners, logs). Set to false in MCP server context where stdout is the JSON-RPC transport. Defaults to true. */ showLogs?: boolean; /** Base directory for storing prototypes. Defaults to process.cwd(). Use the agent's working directory in Fusion to ensure paths stay within the ACL-allowed tree. */ workingDirectory?: string; }): Promise; export declare function runPrototypeCommand(sys: DevToolsSys, args: CLIArgs): Promise; export declare function formatConversation(conversation: { userPrompt: string; title?: string; }[]): string; export declare function buildInitialPrompt(projectDir: string, conversation: { userPrompt: string; title?: string; }[], userRequest: string): string;