export declare const TERMINAL_RUN_STATUSES: Set<string>;
export declare function createChatRunService({ createSseResponse, createSseErrorPayload, maxEvents, ttlMs, shutdownGraceMs, }: {
    createSseResponse: any;
    createSseErrorPayload: any;
    maxEvents?: number | undefined;
    ttlMs?: number | undefined;
    shutdownGraceMs?: number | undefined;
}): {
    create: (meta?: {}) => {
        id: `${string}-${string}-${string}-${string}-${string}`;
        projectId: any;
        conversationId: any;
        assistantMessageId: any;
        clientRequestId: any;
        agentId: any;
        status: string;
        createdAt: number;
        updatedAt: number;
        events: never[];
        nextEventId: number;
        clients: Set<unknown>;
        waiters: Set<unknown>;
        child: null;
        acpSession: null;
        exitCode: null;
        signal: null;
        cancelRequested: boolean;
    };
    start: (run: any, starter: any) => any;
    get: (id: any) => any;
    list: ({ projectId, conversationId, status }?: {}) => any[];
    stream: (run: any, req: any, res: any) => void;
    cancel: (run: any) => void;
    shutdownActive: ({ graceMs }?: {
        graceMs?: number | undefined;
    }) => Promise<void>;
    wait: (run: any) => Promise<unknown>;
    emit: (run: any, event: any, data: any) => {
        id: number;
        event: any;
        data: any;
        timestamp: number;
    };
    finish: (run: any, status: any, code?: null, signal?: null) => void;
    fail: (run: any, code: any, message: any, init?: {}) => void;
    statusBody: (run: any) => {
        id: any;
        projectId: any;
        conversationId: any;
        assistantMessageId: any;
        agentId: any;
        status: any;
        createdAt: any;
        updatedAt: any;
        exitCode: any;
        signal: any;
    };
    isTerminal(status: any): boolean;
};
