import { acceptAgentDialog, approveToolCall, assignAgentSkill, cancelAgentDialog, claimAgentBrowser, createOperationAllowance, getAgentSkillCatalog, persistDraftAgent, rejectToolCall, releaseAgentBrowser, replayAgentDialog, revokeAgentSkill, submitAgentDialogResponse, updateAgentContext, updateAgentCostLimit, updateAgentSettings, type AgentMetadata, type AgentDetails, type PushQueuedPromptRequest, type StartAgentRequest, type QueuedPrompt } from "../../services/agentService";
import { getBrowserCaptureClaim } from "../dialogs/browserBoundCapture";
export type AgentSessionSocketMessage = {
    type: string;
    payload: any;
};
export type AgentSessionSocketMessageSubscriber = (handler: (message: AgentSessionSocketMessage) => void) => () => void;
export declare function markStaleRunningLoadSuppressed(agentId: string | undefined): void;
export declare function clearStaleRunningLoadSuppression(agentId: string | undefined): void;
export declare function hasStaleRunningLoadSuppression(agentId: string | undefined): boolean;
export declare function normalizeAgentSessionInitialPrompt(value: string | undefined): string | null;
export interface AgentSessionLoadSnapshot {
    agent: AgentDetails;
    queuedPrompts: QueuedPrompt[];
}
export declare function loadAgentSessionSnapshot(agentId: string): Promise<AgentSessionLoadSnapshot>;
export declare function refreshAgentAssignedSkillIds(agentId: string): Promise<string[] | null>;
export declare function loadAgentRunDiagnostics(agentId: string, sessionId?: string): Promise<import("../../services/agentService").AgentDiagnosticsResponse>;
export declare function getAgentSessionBrowserCaptureClaim(metadata: AgentMetadata | null | undefined): import("../dialogs/browserBoundCapture").AgentBrowserClaim | null;
export declare function setAgentSessionBrowserCaptureClaim(metadata: AgentMetadata | null | undefined, claim: ReturnType<typeof getBrowserCaptureClaim>): import("../../services/agentService").AgentContextData;
export declare function loadAgentSessionOperationHistory(agentId: string, limit: number): Promise<import("../../..").ExecutionResult<import("../../..").EditOperation[]>>;
export declare function subscribeAgentSessionStream(input: {
    agentId: string;
    addSocketMessageListener: AgentSessionSocketMessageSubscriber;
    onMessage: (message: AgentSessionSocketMessage) => void;
}): () => void;
export declare function subscribeAgentSessionSocketMessages(input: {
    addSocketMessageListener?: AgentSessionSocketMessageSubscriber;
    onMessage: (message: AgentSessionSocketMessage) => void;
}): () => void;
export declare function registerAgentSessionDialogInstance(agentId: string | null, instanceId: string): void;
export declare function unregisterAgentSessionDialogInstance(agentId: string | null, instanceId: string): void;
export declare function setAgentSessionVisibleDialogEntry(input: {
    agentId: string | null;
    instanceId: string;
    callbackId: string | null;
    isFocused: boolean;
}): void;
export declare function clearAgentSessionVisibleDialogEntries(agentIds: (string | null | undefined)[], instanceId: string): void;
export declare function updateAgentSessionDialogFocus(agentIds: (string | null | undefined)[], instanceId: string, isFocused: boolean): void;
export declare function isAgentSessionDialogReceiverElected(agentId: string, instanceId: string): boolean;
export declare function subscribeAgentSessionDialogEvents(handler: (event: CustomEvent) => void): () => void;
export declare function startAgentSessionRun(request: StartAgentRequest): Promise<import("../../services/agentService").StartAgentResponse>;
export declare function pushQueuedPromptSessionRun(request: PushQueuedPromptRequest): Promise<import("../../services/agentService").StartAgentResponse>;
export declare function deleteQueuedPromptSessionEntry(input: {
    agentId: string;
    queuedPromptId: string;
}): Promise<{
    success: boolean;
    message?: string;
}>;
export declare function cancelAgentSessionRun(agentId: string): Promise<any>;
export declare function claimAgentSessionBrowser(input: Parameters<typeof claimAgentBrowser>[0]): Promise<import("../../services/agentService").AgentBrowserClaimResponse>;
export declare function releaseAgentSessionBrowser(input: Parameters<typeof releaseAgentBrowser>[0]): Promise<import("../../services/agentService").AgentBrowserClaimResponse>;
export declare function acceptAgentSessionDialog(input: Parameters<typeof acceptAgentDialog>[0]): Promise<{
    success?: boolean;
}>;
export declare function cancelAgentSessionDialog(input: Parameters<typeof cancelAgentDialog>[0]): Promise<{
    success?: boolean;
}>;
export declare function submitAgentSessionDialogResponse(input: Parameters<typeof submitAgentDialogResponse>[0]): Promise<{
    success?: boolean;
}>;
export declare function replayAgentSessionDialog(input: Parameters<typeof replayAgentDialog>[0]): Promise<{
    success?: boolean;
    replayed?: number;
}>;
export declare function rejectAgentSessionToolCall(input: Parameters<typeof rejectToolCall>[0]): Promise<{
    success: boolean;
}>;
export declare function approveAgentSessionToolCall(input: Parameters<typeof approveToolCall>[0]): Promise<{
    success: boolean;
}>;
export declare function updateAgentSessionSettings(agentId: string, updates: Parameters<typeof updateAgentSettings>[1]): Promise<{
    success: boolean;
    updates?: {
        model: boolean;
        mode: boolean;
    };
}>;
export declare function updateAgentSessionContext(agentId: string, context: Parameters<typeof updateAgentContext>[1]): Promise<{
    success: boolean;
}>;
export declare function updateAgentSessionCostLimit(agentId: string, action: Parameters<typeof updateAgentCostLimit>[1]): Promise<{
    success: boolean;
    costLimit?: number;
    initialCostLimit?: number;
}>;
export declare function persistDraftAgentSession(params: Parameters<typeof persistDraftAgent>[0]): Promise<AgentDetails>;
export declare function assignAgentSessionSkill(params: Parameters<typeof assignAgentSkill>[0]): Promise<{
    success: boolean;
}>;
export declare function revokeAgentSessionSkill(params: Parameters<typeof revokeAgentSkill>[0]): Promise<{
    success: boolean;
}>;
export declare function loadAgentSessionSkillCatalog(includeDisabled?: Parameters<typeof getAgentSkillCatalog>[0]): Promise<import("../../services/agentService").AgentSkillCatalog>;
export declare function loadAgentSessionAvailableTools(agentId: string): Promise<string[]>;
export declare function loadAgentSessionOperationAllowances(agentId: string): Promise<import("../../services/agentService").AgentOperationAllowancesResponse>;
export declare function loadAgentSessionLastPayload(agentId: string): Promise<{
    payload: string;
    rawResponse: string;
}>;
export declare function loadAgentSessionTriggerSubscriptions(agentId: string): Promise<import("../../services/agentService").AgentTriggerSubscription[]>;
export declare function createAgentSessionOperationAllowance(input: Parameters<typeof createOperationAllowance>[0]): Promise<{
    success: boolean;
}>;
