import { Node } from '@tiptap/core'; export interface YamlFormatOptions { /** * Define whether the node should be exited on triple enter. * @default true */ exitOnTripleEnter: boolean | null | undefined; /** * Define whether the node should be exited on arrow down if there is no node after it. * @default true */ exitOnArrowDown: boolean | null | undefined; /** * Enable tab key for indentation in code blocks. * @default false */ enableTabIndentation: boolean | null | undefined; /** * The number of spaces to use for tab indentation. * @default 4 */ tabSize: number | null | undefined; /** * Custom HTML attributes that should be added to the rendered HTML tag. * @default {} * @example { class: 'foo' } */ HTMLAttributes: Record; } declare module '@tiptap/core' { interface Commands { yamlFormat: { /** * Set a yaml format * @example editor.commands.setYamlFormat() */ setYamlFormat: () => ReturnType; /** * Toggle a yaml format * @example editor.commands.toggleYamlFormat() */ toggleYamlFormat: () => ReturnType; }; } } /** * Matches a yaml format with backticks. * Only matches exactly `--- ` (three dashes followed by a space) */ export declare const yamlInputRegex: RegExp; /** * This extension allows you to create yaml format. * @see https://tiptap.dev/api/nodes/code-block */ export declare const YamlFormat: Node;