import { Command } from "commander"; import { type JsonObjectSource } from "../core/input.js"; export type ErrorCodeFieldOptions = { code?: string; description?: string; enrichedDescription?: string; action?: string; }; type ErrorCode = { id: string; } & Record; export declare function buildListErrorCodesPath(opts: { workflowId?: string; }): string; /** * Request body for POST and PATCH /error-codes, built from the field flags. * Field rules are left to the API. */ export declare function buildErrorCodeBody(opts: ErrorCodeFieldOptions): Record; /** * The body comes from the field flags or from --file/--stdin, never both, so * no value is silently overridden. */ export declare function readErrorCodeBody(opts: ErrorCodeFieldOptions & JsonObjectSource): Promise>; export declare function findErrorCode(codes: ErrorCode[], id: string): ErrorCode | undefined; export declare function registerErrorCodeCommands(program: Command): void; export {};