import { TEditor } from '@udecode/slate-plugins-core'; export declare type PredicateObj = Partial>; export declare type PredicateFn = (obj: T) => boolean; export declare type Predicate = PredicateObj | PredicateFn; /** * Match the object with a predicate object or function. * If predicate is: * - object: every predicate key/value should be in obj. * - function: it should return true. */ export declare const match: (obj: T, predicate?: Predicate | undefined) => boolean; export declare const matchPredicate: (predicate?: Predicate | undefined) => (obj: T) => boolean; /** * Extended query options for slate queries: * - `match` can be an object predicate where one of the values should include the node value. * Example: { type: ['1', '2'] } will match the nodes having one of these 2 types. */ export declare const getQueryOptions: (editor: TEditor, options: any) => any; //# sourceMappingURL=match.d.ts.map