import { Node } from '@tiptap/core'; import { GeneralOptions } from '../../types'; export * from './components/RichTextPaywallSeparator'; /** * Options for the PaywallSeparator extension */ export interface PaywallSeparatorOptions extends GeneralOptions { /** HTML attributes to apply to the paywall separator */ HTMLAttributes: Record; } declare module "@tiptap/core" { interface Commands { paywallSeparator: { /** * Insert a paywall separator at the current selection * Only one paywall separator is allowed per document */ insertPaywall: () => ReturnType; }; } } /** * PaywallSeparator extension for TipTap editor * * Creates a block-level node that acts as a paywall separator, similar to Patreon's paywall line. * The separator visually divides free content from premium content. * * Features: * - Block-level node that can be inserted anywhere in the document * - Prevents multiple paywall separators in a single document * - Serializes to HTML as `
` * - Custom NodeView with visual overlay for content creators * - Draggable and insertable via commands */ export declare const PaywallSeparator: Node;