export interface MakeTriggerRegexOptions { /** If set, the query is allowed to contain whitespace, it never crosses a newline @default false */ allowSpaceInQuery?: boolean; } /** * Builds an anchored trigger regex used to detect the active query in the text before the caret. * The resulting regex has two capture groups: the full match to replace (trigger + query) and the query. * A `RegExp` trigger with fewer than two capture groups matches the trigger itself and is wrapped * into that shape. A `RegExp` with two or more capture groups is used as is: it must be anchored * to the end of the text (`$`), group 1 must capture the trigger and the query and group 2 the query. */ export declare function makeTriggerRegex(trigger?: string | RegExp, options?: MakeTriggerRegexOptions): RegExp;