import { FieldControlType } from "./field-definition"; import { RuleOperatorKey, RuleOperatorMeta, RuleOperatorPatches, RuleOperatorsMap } from "./operators"; export declare const OperatorRegistry: { /** * Get the definition of a specific operator by key. */ get: (key: RuleOperatorKey) => RuleOperatorMeta | undefined; /** * Get all operator definitions (e.g., for building UI pickers). */ getAll: () => RuleOperatorsMap; /** * Register one or more operator overrides or additions. * Existing operators with the same key will be replaced. */ register: (overrides: RuleOperatorsMap) => void; /** * Reset the registry to the original default operator map. */ reset: () => void; /** * Use this for override existing operators even partially. * @example OperatorRegistry.patch({ eq: { hideFromPicker: true }, neq: { hideFromPicker: true }, }); */ patch: (overrides: RuleOperatorPatches) => void; /** * Helper for easily exclude a `fieldType` from multiple operators * @example OperatorRegistry.excludeFieldTypes(["switch"], ["isTrue", "isFalse", "truthy"]); */ excludeFieldTypes: (fieldTypes: FieldControlType[], operators: RuleOperatorKey[]) => void; }; //# sourceMappingURL=operator-registry.d.ts.map