/**
 * Phase 1 — CommandEnvelope builder
 * Assembles the canonical envelope from parsed argv, config, and resolved theme.
 */
import type { CommandKind, CommandEnvelope } from "../runtime/types.js";
export interface BuildEnvelopeOptions {
    readonly argv: readonly string[];
    readonly defaultCommand?: CommandKind;
}
export declare function buildCommandEnvelope(opts: BuildEnvelopeOptions): Promise<{
    envelope: CommandEnvelope;
    validation: {
        valid: boolean;
        errors: readonly import("../runtime/types.js").NormalizedCliError[];
    };
}>;
