import { type VSCodeWrapper } from 'cody-ai/webviews/utils/VSCodeApi';
import type { MessageConnection } from 'vscode-jsonrpc/browser';
import type { InitialContext } from '../types';
interface AgentClient {
    rpc: MessageConnection;
    dispose(): void;
}
interface UseCodyWebAgentInput {
    serverEndpoint: string;
    accessToken: string | null;
    createAgentWorker: () => Worker;
    telemetryClientName?: string;
    initialContext?: InitialContext;
    customHeaders?: Record<string, string>;
}
interface UseCodyWebAgentResult {
    client: AgentClient | Error | null;
    vscodeAPI: VSCodeWrapper | null;
}
/**
 * Creates Cody Web Agent instance and automatically creates a new chat.
 * Uses cody web-worker agent under the hood with json rpc as a connection between
 * main and web-worker threads, see agent.client.ts for more details
 */
export declare function useCodyWebAgent(input: UseCodyWebAgentInput): UseCodyWebAgentResult;
export {};
//# sourceMappingURL=use-cody-agent.d.ts.map