import type { TInputPlugin } from "./types.js"; export type TextRestrictionRule = Readonly<{ allowChars: RegExp; } | { denyChars: RegExp; } | { replace: Readonly<{ from: RegExp; to: string; }>; } | { allow: RegExp; } | { filter: (info: Readonly<{ text: string; value: string; cursor: number; selection: null | Readonly<{ start: number; end: number; }>; }>) => string; }>; export declare function createTextRestrictionPlugin(options: Readonly<{ name?: string; rules: readonly TextRestrictionRule[]; }>): TInputPlugin;