import { Editor, Location, Point } from 'slate'; import { EditorBeforeOptions } from '../typings/editor'; export declare type GetPointBeforeOptionsMatchFn = (value: { beforeString: string; beforePoint: Point; at: Location; }) => boolean; export interface GetPointBeforeOptions extends EditorBeforeOptions { /** * @default false * * Allow lookup across multiple node paths. */ acrossPaths?: boolean; /** * @default false * * If true, get the point after the matching point. * Or get the matching point. */ afterMatch?: boolean; /** * Lookup before the location until matching. * * If as `string`, lookup until match the string. * Or until the `until` fn return `true`. */ match?: string | GetPointBeforeOptionsMatchFn; } /** * @todo * Support for sequencing of any characters. */ export declare function getPointBefore(editor: Editor, at: Location, options?: GetPointBeforeOptions): Point | undefined;