import type { TrajectoryStep } from '../../../types/index.js';
import { SubprocessConnector } from '../../../services/connectors/subprocess/SubprocessConnector.js';
import type { ConnectorAuth, ConnectorProgressCallback, SubprocessConfig } from '../../../services/connectors/types.js';
export declare class KiroConnector extends SubprocessConnector {
    readonly type: "kiro";
    readonly name = "Kiro CLI";
    traceContext: {
        propagateEnv: boolean;
        serviceName: string;
    };
    /** Carry-over for a partial last line on stderr stream */
    private stderrLineBuffer;
    /** Tool name from the last unmatched `[tool] Running:` line, used to
     *  attach the same toolName to the corresponding `[tool] status:` row. */
    private pendingToolName;
    constructor(config?: Partial<SubprocessConfig>);
    /**
     * Convert kiro-cli's stderr `[tool]` markers into trajectory steps.
     *
     * Each chunk may straddle line boundaries, so we accumulate into
     * `stderrLineBuffer` and only consume complete lines (the trailing
     * partial line is held until the next chunk or `onBeforeStreamEnd`).
     */
    protected parseStderrChunk(chunk: string, trajectory: TrajectoryStep[], onProgress?: ConnectorProgressCallback): void;
    /**
     * Drain any held partial line from the stderr buffer and reset
     * per-run state, then defer to the base class to flush the
     * consolidated stdout response step.
     */
    protected onBeforeStreamEnd(trajectory: TrajectoryStep[], onProgress?: ConnectorProgressCallback): void;
    /**
     * Parse a single stderr line. Recognised forms:
     *
     *   [tool] Running: <command>          -> emit `action` step
     *   [tool] status: Completed           -> emit `tool_result` (SUCCESS)
     *   [tool] status: Failed              -> emit `tool_result` (FAILURE)
     *   [tool] status: <anything else>     -> emit `tool_result` (FAILURE)
     *
     * Other stderr lines (AWS SDK warnings, telemetry info, etc.) are ignored.
     */
    private processStderrLine;
    healthCheck(endpoint: string, auth: ConnectorAuth): Promise<boolean>;
}
/**
 * Default instance for convenience.
 */
export declare const kiroConnector: KiroConnector;
//# sourceMappingURL=KiroConnector.d.ts.map