import { B as IBuilderFieldChange, H as IBuilderFieldOptionState, L as BuilderFieldOption, R as BuilderFieldOptionsStatus, _ as IBuilderValidationResult, c as BuilderGroupMode, f as IBuilderComponentsProps, it as IBuilderHistoryState, nt as BuilderHistoryAction, u as BuilderNewNodePlacement, wt as IButtonProps } from "./index-DhVJBnKT.mjs"; import { J as IDenormalizedRuleNode, Y as IFieldReferenceRuleNode, dt as QueryRuleValueSource, r as IBuilderFieldProps, rt as INormalizedRuleNode, st as NormalizedQuery } from "./builder-field-usage-limit-CAz4LEo2.mjs"; import { t as IStrings } from "./strings-ChWlHUTZ.mjs"; import React, { ElementType, FC, PropsWithChildren, ReactElement } from "react"; //#region src/builder/theme/styles/colors.d.ts interface IColorVariant { light: string; dark: string; default: string; contrastText: string; } interface IGreyColorVariant { 100: string; 200: string; 300: string; 400: string; 500: string; 600: string; 700: string; 800: string; 900: string; } interface IAlertColorVariant { primary: string; light: string; } interface IColors { primary: IColorVariant; secondary: IColorVariant; grey: IGreyColorVariant; info: IAlertColorVariant; success: IAlertColorVariant; warning: IAlertColorVariant; error: IAlertColorVariant; white: string; } declare const colors: IColors; //#endregion //#region src/builder/theme/types/theme-color-overrides.d.ts type ThemeColorOverrides = { [Key in keyof IColors]?: IColors[Key] extends string ? IColors[Key] : Partial }; //#endregion //#region src/builder/theme/components/theme-provider/theme-provider.d.ts interface IThemeProps { colors?: TColors; } /** * @deprecated ThemeProvider color theming is a legacy compatibility API. Prefer * the public `--query-builder-*` CSS variables for new integrations. */ interface IThemeProviderProps extends IThemeProps { children?: React.ReactNode; } /** * @deprecated ThemeProvider color theming is a legacy compatibility API. Prefer * the public `--query-builder-*` CSS variables for new integrations. */ declare const ThemeProvider: FC; //#endregion //#region src/builder/utils/builder-field-options-store.d.ts interface IBuilderFieldOptionsStore { subscribeField: (field: string, listener: () => void) => () => void; getFieldState: (field: string) => IBuilderFieldOptionState | undefined; setFieldOptions: (field: string, options: BuilderFieldOption[] | ((current: BuilderFieldOption[]) => BuilderFieldOption[])) => void; setFieldStatus: (field: string, status: BuilderFieldOptionsStatus) => void; invalidateField: (field: string) => void; clearField: (field: string) => void; subscribeRule: (ruleId: string, listener: () => void) => () => void; getRuleState: (ruleId: string) => IBuilderFieldOptionState | undefined; setRuleOptions: (ruleId: string, options: BuilderFieldOption[] | ((current: BuilderFieldOption[]) => BuilderFieldOption[])) => void; setRuleStatus: (ruleId: string, status: BuilderFieldOptionsStatus) => void; invalidateRule: (ruleId: string) => void; clearRule: (ruleId: string) => void; } //#endregion //#region src/builder/context/builder-context.d.ts interface IBuilderContextProps { fields: IBuilderFieldProps[]; data: NormalizedQuery; readOnly: boolean; readOnlyProtectsDelete?: boolean; lockable?: boolean; cloneable?: boolean; draggable?: boolean; allowGroupNegation?: boolean; allowFieldComparisons?: boolean; singleRootGroup?: boolean; groupTypes?: BuilderGroupMode; newNodePlacement?: BuilderNewNodePlacement; showValidation?: boolean; validation?: IBuilderValidationResult; components: IBuilderComponentsProps; strings: IStrings; fieldOptionsStore?: IBuilderFieldOptionsStore; onFieldOptionsReload?: (field: string) => void; onRuleOptionsReload?: (ruleId: string) => void; onFieldChange?: (change: IBuilderFieldChange) => void; setData?: React.Dispatch; onChange?: (data: NormalizedQuery) => void; updateData?: (updater: (currentData: NormalizedQuery) => NormalizedQuery) => void; dispatchAction?: (action: BuilderHistoryAction) => void; history?: IBuilderHistoryState & { canUndo: boolean; canRedo: boolean; undo: () => void; redo: () => void; }; } declare const BuilderContext: React.Context; interface IBuilderContextProviderProps { fields: IBuilderFieldProps[]; data: NormalizedQuery; readOnly: boolean; readOnlyProtectsDelete?: boolean; lockable?: boolean; cloneable?: boolean; draggable?: boolean; allowGroupNegation?: boolean; allowFieldComparisons?: boolean; singleRootGroup?: boolean; groupTypes?: BuilderGroupMode; newNodePlacement?: BuilderNewNodePlacement; showValidation?: boolean; validation?: IBuilderValidationResult; components: IBuilderComponentsProps; strings: IStrings; fieldOptionsStore?: IBuilderFieldOptionsStore; onFieldOptionsReload?: (field: string) => void; onRuleOptionsReload?: (ruleId: string) => void; onFieldChange?: (change: IBuilderFieldChange) => void; setData?: React.Dispatch; onChange?: (data: NormalizedQuery) => void; updateData?: (updater: (currentData: NormalizedQuery) => NormalizedQuery) => void; dispatchAction?: (action: BuilderHistoryAction) => void; history?: IBuilderContextProps['history']; children: React.ReactNode; } //#endregion //#region src/builder/components/form-controls/option/option.d.ts declare const Option: FC; //#endregion //#region src/builder/components/form-controls/option-container/types/option-container-props.d.ts type OptionContainerProps = { as?: TElement; } & Omit, 'as'>; //#endregion //#region src/builder/components/form-controls/option-container/types/option-container-ref.d.ts type OptionContainerRef = React.ComponentPropsWithRef['ref']; //#endregion //#region src/builder/components/form-controls/option-container/option-container.d.ts interface IOptionContainerComponent { (props: OptionContainerProps & { ref?: OptionContainerRef; }): ReactElement | null; } declare const OptionContainer: IOptionContainerComponent; //#endregion //#region src/builder/components/secondary-button/secondary-button.d.ts declare const SecondaryButton: FC>; //#endregion //#region src/shared/query/model/utils/rule-value-source.util.d.ts type QueryRuleNode = IDenormalizedRuleNode | INormalizedRuleNode; declare const getRuleValueSource: (rule: { valueSource?: QueryRuleValueSource; }) => QueryRuleValueSource; declare const isFieldComparisonRule: (rule: QueryRuleNode) => rule is IFieldReferenceRuleNode & Pick; declare const isLiteralComparisonRule: (rule: QueryRuleNode) => boolean; //#endregion export { IGreyColorVariant as _, OptionContainer as a, IBuilderContextProps as c, IThemeProviderProps as d, ThemeProvider as f, IColors as g, IColorVariant as h, SecondaryButton as i, IBuilderContextProviderProps as l, IAlertColorVariant as m, isFieldComparisonRule as n, Option as o, ThemeColorOverrides as p, isLiteralComparisonRule as r, BuilderContext as s, getRuleValueSource as t, IThemeProps as u, colors as v };