react-querybuilder
Version:
React Query Builder component for constructing queries and filters, with utilities for executing them in various database and evaluation contexts
17 lines (16 loc) • 657 B
text/typescript
import * as React from "react";
import type { FullField, MatchMode, MatchModeEditorProps, RuleType, Schema } from "../types/index.mjs";
/**
* Default `matchModeEditor` component used by {@link QueryBuilder}.
*
* @group Components
*/
export declare const MatchModeEditor: (props: MatchModeEditorProps) => React.JSX.Element | null;
export interface UseMatchModeEditor {
thresholdNum: number;
thresholdRule: RuleType;
thresholdSchema: Schema<FullField, string>;
handleChangeMode: (mode: MatchMode) => void;
handleChangeThreshold: (threshold: number) => void;
}
export declare const useMatchModeEditor: (props: MatchModeEditorProps) => UseMatchModeEditor;