import { IncomingMessage, ServerResponse, Server } from 'http'; import type { AGUIEvent, AGUIMessage } from './types'; import type { BaseAgent } from '../../core/agent'; export declare class AGUIEventEmitter { private res; private closed; constructor(res: ServerResponse); emit(event: AGUIEvent): void; textStart(messageId: string): void; textContent(messageId: string, delta: string): void; textEnd(messageId: string): void; toolCallStart(id: string, name: string): void; toolCallArgs(id: string, delta: string): void; toolCallEnd(id: string): void; stateSnapshot(snapshot: Record): void; stateDelta(delta: any[]): void; runStarted(runId: string, threadId?: string): void; runFinished(runId: string): void; runError(runId: string, message: string, code?: string): void; stepStarted(stepId: string, stepName?: string): void; stepFinished(stepId: string): void; messagesSnapshot(messages: AGUIMessage[]): void; custom(name: string, value: any): void; close(): void; get isClosed(): boolean; } export declare class AGUIServer { private agent; private path; constructor(agent: BaseAgent, config?: { path?: string; }); mount(server: Server): void; handleRun(req: IncomingMessage, res: ServerResponse): Promise; private streamResponse; } //# sourceMappingURL=server.d.ts.map