/** * Work Item creation — validation and field mapping. * * Pure functions used by AdoClient.createWorkItem and by tool handlers * to validate creation requests against project configuration rules * and map input fields to ADO JSON Patch operations. */ /** * Build JSON Patch operations from input fields to ADO API field paths. * * Only known fields are mapped; unknown keys are silently ignored. * All operations use "add" semantics. * * @param fields - Standard fields mapped via FIELD_MAP (title, description, etc.) * @param customFields - Arbitrary ADO fields where keys are full ADO paths * (e.g. "/fields/Custom.Sponsors") and values are the field values. * These are appended as direct "add" patch operations. */ export declare function buildFieldPatchOps(fields: Record, customFields?: Record): Array<{ op: string; path: string; value: unknown; }>; /** * Validate work item creation against project config rules. * * Returns `null` if valid, or an error string describing the first * validation failure encountered. */ export declare function validateWorkItemCreation(config: { work_item: { create: { enabled: boolean; allowed_types: string[]; required_fields: string[]; default_state: string; auto_assign: boolean; require_parent: boolean; default_type: string; }; }; }, args: { type: string; fields: Record; parentId?: number; }): string | null; //# sourceMappingURL=wi-create.d.ts.map