import { type Dispatch, type SetStateAction } from "react";
import type { Agent, AgentMetadata } from "../../services/agentService";
import type { AiProfile } from "../../services/aiService";
type BuildCurrentContext = () => AgentMetadata | null;
type SanitizeAgentMetadata = (metadata: AgentMetadata | null) => AgentMetadata | null;
export declare function useAgentEditorContextSync(input: {
    agent: Agent | null | undefined;
    agentMetadata: AgentMetadata | null | undefined;
    activeProfile: AiProfile | undefined;
    profiles: AiProfile[];
    editContext: any;
    fieldsContext: any;
    buildCurrentContext: BuildCurrentContext;
    sanitizeAgentMetadata: SanitizeAgentMetadata;
    setAgentMetadata: Dispatch<SetStateAction<AgentMetadata | null>>;
}): {
    handleRefreshContext: () => Promise<void>;
};
export {};
