/**
 * Product mode handlers.
 * Handles: product.plan/confirm/message/create/resume/pause/checkpoint/status/list/delete/cancel/rollback.
 */
import { type AgentRpcError, type AgentRpcRequest } from "../../protocol/wire/index.js";
import { type ProductCoordinatorHost } from "../product-coordinator.js";
export type { ProductCoordinatorHost } from "../product-coordinator.js";
export interface ProductHandlerHost extends ProductCoordinatorHost {
    getActiveProjectRoot(): string;
    sendResponse(id: string | number, result?: unknown, error?: AgentRpcError): void;
}
export { productProjectMap, writeProductTerminalPlanStatus } from "../product-coordinator.js";
export declare function ensureProductOrchestrator(this: ProductCoordinatorHost): import("../../orchestration/agent-instance.js").ProductOrchestrator;
export declare function ensureProductPlanner(this: ProductCoordinatorHost): import("../../orchestration/product-planner.js").ProductPlanner;
/** `product.plan` - Start interactive planning with leader agent. */
export declare function handleProductPlan(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.confirm` - User confirms the plan, transition to execution. */
export declare function handleProductConfirm(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.message` - User sends message to leader (multi-turn planning or execution intervention). */
export declare function handleProductMessage(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.create` - Create a new Product Mode session. */
export declare function handleProductCreate(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.resume` - Resume a paused product. */
export declare function handleProductResume(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.pause` - Pause a running product. */
export declare function handleProductPause(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.checkpoint` - Manual checkpoint. */
export declare function handleProductCheckpoint(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.status` - Query product status. */
export declare function handleProductStatus(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.list` - List all products. */
export declare function handleProductList(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
export declare function handleProductDelete(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.cancel` - Cancel a running product. */
export declare function handleProductCancel(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
/** `product.rollback` - Rollback a product to a checkpoint. */
export declare function handleProductRollback(this: ProductHandlerHost, msg: AgentRpcRequest): Promise<void>;
