/** * Field alias registry for the flow/trace tool dispatch chain. * * The canonical-wins rule: if a canonical key is present, its value is used * and any alias key for the same canonical is removed. If only the alias * is present, it is resolved to the canonical key and the alias key is removed. * * Context-split aliases resolve differently depending on the tool context * (batch, bash, web). This avoids collisions where the same alias letter * means different things in different tool contexts. */ export declare const OP_FIELD_ALIASES: Record>; export declare const DISPATCH_WRAPPER_ALIASES: Record; /** * Resolve a canonical field value from an object, using the alias registry. * * @param canonical - The canonical key (e.g. "c", "p", "o"). * @param obj - The object to read from. * @param ctx - The tool context (batch, bash, or web). * @returns The value at the canonical key, or the resolved alias value, or undefined. */ export declare function resolveAlias(canonical: string, obj: Record, ctx: { tool: string; }): unknown; /** * Apply canonical field aliases to a single operation object. * * Returns a new object with every canonical key resolved via resolveAlias, * preserving unknown keys for forward compatibility. * * @param op - The raw operation object. * @param tool - The tool context (batch, bash, or web). * @returns The aliased result, and flags indicating whether aliasing occurred. */ export declare function applyOpAliases(op: Record, tool: "batch" | "bash" | "web"): { result: Record; aliased: boolean; changed: boolean; }; /** * Apply canonical field aliases to a dispatch wrapper object. * * @param group - The raw dispatch wrapper object. * @returns The aliased result, and flags indicating whether aliasing occurred. */ export declare function applyDispatchWrapperAliases(group: Record): { result: Record; aliased: boolean; changed: boolean; }; //# sourceMappingURL=op-aliases.d.ts.map