/**
 * Shared helpers for the single-definition worker (`./worker.ts`) and
 * the multi-workflow dispatcher (`./workflow-cli.ts`). These were all
 * inlined in the original `worker.ts` before the split.
 */
import type { WorkflowInput } from "./types.ts";
/**
 * Convert a hyphenated option name to the camelCase key Commander uses
 * when storing options in `opts()`. Commander applies this transform
 * automatically: `--output-type` → `opts.outputType`.
 *
 * @example toCamelCase("output-type")  // → "outputType"
 * @example toCamelCase("max-loops")    // → "maxLoops"
 * @example toCamelCase("simple")       // → "simple"
 */
export declare function toCamelCase(name: string): string;
/**
 * Validate and resolve inputs against a workflow's declared schema.
 * Throws on unknown flags, missing required fields, invalid enum values,
 * and non-integer values for integer fields.
 */
export declare function validateAndResolve(inputs: Record<string, string>, schema: readonly WorkflowInput[]): Record<string, string>;
/**
 * Coerce a typed defaults map (InputsOf shape — string | number values)
 * into the string-valued map the executor and CLI flag layer consume.
 * Returns `undefined` when `defaults` is `undefined` so callers can
 * skip merging entirely.
 */
export declare function stringifyDefaults(defaults: Record<string, string | number | undefined> | undefined): Record<string, string> | undefined;
/**
 * Inspect every workflow in a registry snapshot and build a
 * union-of-inputs map. Throws on reserved-name use and on same-name /
 * different-type collisions. Returns the deduplicated union map
 * (name → WorkflowInput). Used by the multi-workflow dispatcher to
 * expose a single set of flags across heterogeneous registry entries.
 */
export declare function buildInputUnion(workflows: readonly {
    readonly agent: string;
    readonly name: string;
    readonly inputs: readonly WorkflowInput[];
}[]): Map<string, WorkflowInput>;
//# sourceMappingURL=worker-shared.d.ts.map