import { Node } from '@tiptap/core'; export interface CouponNodeAttrs { /** Fixed code, shown when no response path resolves. */ code: string; /** Dot-path into the submit response JSON (e.g. `data.discountCode`). */ path: string | null; /** Whether the rendered chip shows a copy button. */ copyable: boolean; } declare module '@tiptap/core' { interface Commands { coupon: { /** Insert a coupon node at the current selection. */ insertCoupon: (attrs?: Partial) => ReturnType; }; } } export declare const Coupon: Node;