import { type MutableRefObject, type SetStateAction } from "react";
import type { Agent, AgentChatMessage, AgentDetails, AgentMetadata } from "../../services/agentService";
import type { AiProfile } from "../../services/aiService";
import type { AgentSessionActions } from "./useAgentSession";
type EditorContextItemDescriptor = {
    id: string;
    language: string;
    version: number;
    name?: string;
};
type StateSetter<T> = (next: SetStateAction<T>) => void;
export declare function useAgentDraftInitializer(input: {
    agentStub: Agent;
    initialMetadata: AgentMetadata | undefined;
    profiles: AiProfile[];
    currentItemDescriptor: EditorContextItemDescriptor | undefined;
    buildEditorContextPayload: (item: EditorContextItemDescriptor | undefined) => AgentMetadata;
    messagesRef: MutableRefObject<AgentChatMessage[]>;
    actions: AgentSessionActions;
    setAgent: StateSetter<AgentDetails | undefined>;
    setAgentMetadata: StateSetter<AgentMetadata | null>;
    setError: StateSetter<string | null>;
    setPrompt: StateSetter<string>;
}): () => boolean;
export {};
