import { type SpinnerHandle } from '../../../ui';
import type { Middleware, MiddlewareContext, MiddlewareStore, SDKMessage } from '../types';
export declare class SummaryPlugin implements Middleware {
    readonly name = "summary";
    private spinner;
    constructor(spinner: SpinnerHandle);
    onPhaseTransition(fromPhase: string, toPhase: string, ctx: MiddlewareContext, _store: MiddlewareStore): void;
    onFinalize(_resultMessage: SDKMessage, totalDurationMs: number, ctx: MiddlewareContext, _store: MiddlewareStore): void;
}
