import { TEditor, Value } from "../slate/editor/TEditor"; import { ENode, TNode } from "../slate/node/TNode"; import { TPath } from "../slate/types/interfaces"; export type PredicateObj = Record; export type PredicateFn = (obj: T, path: TPath) => boolean; export 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, path: import("slate").Path, predicate?: Predicate | undefined) => 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; export type ENodeMatch = Predicate; export interface ENodeMatchOptions { match?: ENodeMatch>; block?: boolean; } //# sourceMappingURL=match.d.ts.map