type LinkMode = "protocol" | "text-only"; declare const isWordChar: (char: string) => boolean; declare const isWithinCodeBlock: (text: string, position: number) => boolean; declare const isWithinMathBlock: (text: string, position: number) => boolean; declare const isWithinLinkOrImageUrl: (text: string, position: number) => boolean; /** * Handler function that transforms text during streaming. */ interface RemendHandler { /** Handler function: takes text, returns modified text */ handle: (text: string) => string; /** Unique identifier for this handler */ name: string; /** Priority (lower runs first). Built-in priorities: 0-100. Default: 100 */ priority?: number; } /** * Configuration options for the remend function. * Options default to `true` unless noted otherwise. * Set an option to `false` to disable that specific completion. */ interface RemendOptions { /** Complete bold formatting (e.g., `**text` → `**text**`) */ bold?: boolean; /** Complete bold-italic formatting (e.g., `***text` → `***text***`) */ boldItalic?: boolean; /** Escape > as comparison operators in list items (e.g., `- > 25` → `- \> 25`) */ comparisonOperators?: boolean; /** Custom handlers to extend remend */ handlers?: RemendHandler[]; /** Strip incomplete HTML tags at end of streaming text (e.g., `text string; export { type LinkMode, type RemendHandler, type RemendOptions, remend as default, isWithinCodeBlock, isWithinLinkOrImageUrl, isWithinMathBlock, isWordChar };