import { Extension } from '@tiptap/core'; export interface VerticalAlignOptions { /** * The types where the vertical align attribute can be applied. * @default ['textStyle'] * @example ['textStyle'] */ types: string[]; /** * The alignments which are allowed. * @default ['top', 'middle', 'bottom'] */ alignments: string[]; /** * The default alignment. * @default null */ defaultAlignment: string | null; } declare module '@tiptap/core' { interface Commands { verticalAlign: { /** * Set the vertical align attribute * @param alignment The alignment * @example editor.commands.setVerticalAlign('top') */ setVerticalAlign: (alignment: string) => ReturnType; /** * Unset the vertical align attribute * @example editor.commands.unsetVerticalAlign() */ unsetVerticalAlign: () => ReturnType; /** * Toggle the vertical align attribute * @param alignment The alignment * @example editor.commands.toggleVerticalAlign('middle') */ toggleVerticalAlign: (alignment: string) => ReturnType; }; } } declare module '@tiptap/extension-text-style' { interface TextStyleAttributes { verticalAlign?: string | null; } } export declare const VerticalAlign: Extension; export default VerticalAlign;