import { Text } from "../../doc/src"; import { Plugin } from "../../state/src"; import { DecorationSet } from "../../view/src/decoration"; export declare type Config = { afterCursor?: boolean; decorationsPlugin?: Plugin; bracketRegex?: RegExp; maxScanDistance?: number; strict?: boolean; }; export declare function findMatchingBracket(doc: Text, decorations: DecorationSet | undefined, where: number, config?: Config): { from: number; to: number | null; forward: boolean; match: boolean; } | null; export declare function scanForBracket(doc: Text, decorations: DecorationSet | undefined, where: number, dir: -1 | 1, style: string | null, config: Config): false | { pos: number; ch: string; }; export declare function matchBrackets(config?: Config): Plugin;