import { MilkdownPlugin } from '@milkdown/kit/ctx'; /** * Smart text replacement configuration */ interface SmartTextConfig { /** Enable arrow replacement: -> to right arrow */ arrows?: boolean; /** Enable fraction replacements: 1/2 to one half, 1/4 to one quarter, 3/4 to three quarters */ fractions?: boolean; /** Enable symbol replacements: (c) to copyright, (r) to registered, (tm) to trademark */ symbols?: boolean; /** Enable ellipsis replacement: ... to horizontal ellipsis */ ellipsis?: boolean; /** Enable smart quotes: straight quotes to curly quotes */ smartQuotes?: boolean; /** Enable em dash: -- to em dash */ emDash?: boolean; /** Enable en dash: number-number to number en-dash number */ enDash?: boolean; } /** * Smart text plugin that provides automatic text replacements * * Features: * - Arrow replacements: -> to right arrow * - Fraction replacements: 1/2 to one half, 3/4 to three quarters * - Symbol replacements: (c) to copyright, (r) to registered, (tm) to trademark * - Ellipsis: ... to horizontal ellipsis * - Smart quotes: straight quotes to curly quotes * - Em dash: -- to em dash * - En dash: 2-3 to 2 en-dash 3 * * @example * ```ts * crepe.editor.use(arrowRightRule).use(ellipsisRule); * * // Or use helper with config * smartTextPlugin().forEach(plugin => crepe.editor.use(plugin)); * ``` */ export declare function smartTextPlugin(config?: SmartTextConfig): MilkdownPlugin[]; export {};