import type { ViteDevServer } from 'vite';
import type { Context } from '../../context.js';
import type { UiChannelServer } from './types.js';
/** Adds lazy agent settings/status and permission handling to this dev generation. */
export declare function registerAgentsChannel(ctx: Context, channel: UiChannelServer, server?: ViteDevServer): {
    ready: Promise<void>;
    snapshot: () => import("@histoire/shared").UiAgentsSnapshot;
    registry: (force?: boolean) => Promise<import("@histoire/shared").UiAgentRegistry>;
    icon: (id: string) => Promise<string | undefined>;
    configOptions(agentId: string, force?: boolean): Promise<import("@histoire/shared").UiAgentConfigOptions>;
    commandNames: (agentId: string) => string[];
    onUpdate(listener: (event: import("../../acp/types.js").AcpUpdate) => void): () => void;
    configure(value: import("@histoire/shared").UiAgentSettings): Promise<void>;
    retireProjectOverrides: (paths: readonly string[], config?: import("../../acp/types.js").AcpManagerOptions['config']) => Promise<void>;
    resetProjectOverrides: (paths: readonly string[]) => Promise<void>;
    setEnvironment(agentId: string, env: Record<string, string>): Promise<void>;
    prompt(request: import("../../acp/types.js").AcpPromptRequest): Promise<import("../../acp/types.js").AcpPromptResult>;
    cancel(threadId: string): Promise<void>;
    replyPermission: (requestId: string, allow: boolean, remember: boolean, choiceId?: string) => void;
    replyElicitation: (requestId: import("@histoire/shared").UiAgentElicitationReply['requestId'], action: import("@histoire/shared").UiAgentElicitationReply['action'], content?: unknown) => boolean;
    restart(agentId: string): Promise<void>;
    close(): Promise<void>;
};
//# sourceMappingURL=agents.d.ts.map