import { DefaultOperatorName, RuleType } from "../../types/ruleGroups.mjs"; import { MatchMode } from "../../types/basic.mjs"; import { ExportFormat } from "../../types/export.mjs"; import "../../types/index.mjs"; /** * Describes what an export format can express. Used by default rule processors to decide * whether to skip a rule and by the "diagnostics" format (`diagnosticsTargetFormat`) to * report rules that would be skipped. * * @group Export */ export interface FormatCapabilities { /** Lowercased operator names the format can express. */ operators: ReadonlySet>; /** Supports `valueSource: 'field'`. Set = only for those (lowercased) operators. */ fieldValueSource: boolean | ReadonlySet>; /** Supported (lowercased, post-coercion) match modes. Empty = none. */ matchModes: ReadonlySet>; /** Native group negation. `false` = De Morgan push-down via {@link negateRuleGroup}. */ nativeNot: boolean; } /** * Capabilities of export formats, keyed by {@link ExportFormat}. Only populated for * vector database formats at this time. * * @group Export */ export declare const formatCapabilities: Partial>; /** * Feature of a rule that a format can't express. * * @group Export */ export type UnsupportedRuleFeature = "operator" | "valueSource" | "matchMode"; /** * Returns the first feature of `rule` unsupported per `caps`, or `null` if fully supported. * Match-mode rules are checked by mode only (operator ignored). Regex operators are checked as * their `contains`/`doesNotContain` fallbacks. * * @group Export */ export declare const getUnsupportedRuleFeature: (ruleParam: RuleType, caps: FormatCapabilities) => UnsupportedRuleFeature | null;