import type { IPty } from '@shitiandmw/node-pty';
import type { MsgStore } from '../output/msg-store.js';
import type { EventBus } from '../core/event-bus.js';
export interface OutputParser {
    processData(data: string): void;
    finish(exitCode?: number): void;
}
/**
 * Owns one session's PTY + parser lifecycle.
 */
export declare class AgentPipeline {
    private readonly sessionId;
    private readonly pty;
    private readonly parser;
    private readonly msgStore;
    private readonly eventBus;
    private destroyed;
    private offData?;
    private offExit?;
    private offPatch?;
    private offSessionId?;
    constructor(sessionId: string, pty: IPty, parser: OutputParser | null, msgStore: MsgStore, eventBus: EventBus);
    get isAlive(): boolean;
    write(data: string): void;
    resize(cols: number, rows: number): void;
    destroy(): void;
}
//# sourceMappingURL=agent-pipeline.d.ts.map