import type { FilterFieldSpec } from "./types.js"; /** * Case-insensitively rewrite list-filter values to their canonical enum * forms before the request hits the Harness API. * * Agents often send lowercase (`"pending"`) when APIs require PascalCase * (`"Pending"`) or UPPERCASE (`"CONNECTED"`). Enum metadata lives on * `listFilterFields` and is surfaced via `harness_describe`, but the * global `harness_list` schema cannot encode per-resource enums — so * canonicalize here instead of relying on agents to call describe first. * * - Case-insensitive match → rewrite to the declared enum value * - Comma-separated multi-values are canonicalized token-by-token * - Non-string values are left untouched (typed filters stay as-is) * * Values with no case-insensitive match are passed through unchanged. * `listFilterFields.enum` is hand-maintained documentation metadata that * can lag the API, and some resources apply their own fallback for * unrecognized values, so this must not become a validation gate. */ export declare function canonicalizeListFilterEnums(input: Record, fields: FilterFieldSpec[]): void; //# sourceMappingURL=enum-utils.d.ts.map