/**
 * Middleware Pipeline
 *
 * Executes a sequence of ConversationMiddleware instances in priority order.
 * Short-circuits on 'stop' or 'compact' actions.
 *
 * @module agent/middleware
 */
import { ConversationMiddleware, MiddlewareContext, MiddlewareResult } from './types.js';
/**
 * Manages and executes a pipeline of conversation middlewares.
 */
export declare class MiddlewarePipeline {
    private middlewares;
    /**
     * Register a middleware in the pipeline.
     * Middlewares are kept sorted by priority (lower first).
     */
    use(middleware: ConversationMiddleware): this;
    /**
     * Remove a middleware by name.
     */
    remove(name: string): boolean;
    /**
     * Run all before_turn middlewares in priority order.
     * Short-circuits on 'stop' or 'compact'.
     */
    runBeforeTurn(context: MiddlewareContext): Promise<MiddlewareResult>;
    /**
     * Run all after_turn middlewares in priority order.
     * Short-circuits on 'stop' or 'compact'.
     */
    runAfterTurn(context: MiddlewareContext): Promise<MiddlewareResult>;
    /**
     * Get list of registered middleware names.
     */
    getMiddlewareNames(): string[];
    private runPhase;
}
