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<string, string>;
    userId?: string;
}): Promise<{
    userPrompt: string;
    title?: string;
}[]>;
export declare function pullPrototype(options: {
    projectId: string;
    branchName: string;
    apiKey: string;
    authHeaders: Record<string, string>;
    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;
}): Promise<PullPrototypeResult | undefined>;
export declare function runPrototypeCommand(sys: DevToolsSys, args: CLIArgs): Promise<void>;
export declare function formatConversation(conversation: {
    userPrompt: string;
    title?: string;
}[]): string;
export declare function buildInitialPrompt(projectDir: string, conversation: {
    userPrompt: string;
    title?: string;
}[], userRequest: string): string;
