import type { ModuleCommandResult } from "../../contracts/module-contract.js";
import type { ModuleCommandRouter } from "../module-command-router.js";
import type { TaskEngineTaskRowSlice } from "./evaluation-context-builder.js";
export type CaeCliPreflightOutcome = {
    shadowAttach: Record<string, unknown> | null;
    enforcementDenial: ModuleCommandResult | null;
    traceToStore: {
        traceId: string;
        bundle: Record<string, unknown>;
        trace: Record<string, unknown>;
    } | null;
};
export declare function hydrateTaskRowForCae(workspacePath: string, effective: Record<string, unknown>, taskId: string): TaskEngineTaskRowSlice | null;
export declare function inferApprovalTierHint(subcommand: string, commandArgs: Record<string, unknown>, effective: Record<string, unknown>): "none" | "A" | "B" | "C";
/**
 * Shadow preflight + optional enforcement probe for `handleRunCommand` (**`T864`**, **`T866`**).
 * Degrades on errors — never blocks except explicit enforcement allowlist match.
 */
export declare function runCaeCliPreflight(input: {
    workspacePath: string;
    effective: Record<string, unknown>;
    subcommand: string;
    commandArgs: Record<string, unknown>;
    router: ModuleCommandRouter;
}): CaeCliPreflightOutcome;
export declare function mergeCaeIntoCommandResult(result: ModuleCommandResult, cae: Record<string, unknown> | null): ModuleCommandResult;
