import { Node, Range } from '@tiptap/core'; export interface PlaceholdersOptions { HTMLAttributes: {}; } export declare const ExtensionPlaceholders: Node; declare module '@tiptap/core' { interface Commands { placeholders: { /** * Inserts placeholders. Note: this will not check if it is editable, you must do this beforehand. * * @param name A unique name for this placeholder (e.g. first_name) will be converted to upper case so it's not case sensitive. * @param label A unique label for this placeholder (e.g. First Name) * @param config A string to JSON stringify along with this specific placeholder. * @param id A unique identifier for this placeholder, even if they are the same name. Leave blank if unsure. * @returns true for success, false for :( */ insertPlaceholder: (name: string, label: string, config?: Record, id?: string) => ReturnType; /** * Inserts placeholders at positions. Note: this will not check if it is editable, you must do this beforehand. * * @param position position to insert, or undefined to fallback to insertPlaceholder * @param name A unique name for this placeholder (e.g. first_name) will be converted to upper case so it's not case sensitive. * @param label A unique label for this placeholder (e.g. First Name) * @param config A string to JSON stringify along with this specific placeholder. * @param id A unique identifier for this placeholder, even if they are the same name. Leave blank if unsure. * @returns true for success, false for :( */ insertPlaceholderAt: (position: number | Range | undefined, name: string, label: string, config?: Record, id?: string) => ReturnType; }; } }