import { Node } from '@tiptap/core'; export interface RunCodeBlockOptions { /** * Adds a prefix to language classes that are applied to code tags. * Defaults to `'language-'`. */ languageClassPrefix: string; /** * Define whether the node should be exited on triple enter. * Defaults to `true`. */ exitOnTripleEnter: boolean; /** * Define whether the node should be exited on arrow down if there is no node after it. * Defaults to `true`. */ exitOnArrowDown: boolean; /** * Custom HTML attributes that should be added to the rendered HTML tag. */ HTMLAttributes: Record; onCodeExec?: (value: { language: string; code: string; template?: any; }) => Promise<{ success: boolean; data?: string; error?: string; }>; defaultEditorHeight: number | string; defaultResultHeight: number | string; codeEditable?: boolean; } declare module '@tiptap/core' { interface Commands { runCodeBlock: { setCodeBlock: (attributes?: { language: string; }) => ReturnType; toggleCodeBlock: (attributes?: { language: string; }) => ReturnType; }; } } export declare const backtickInputRegex: RegExp; export declare const tildeInputRegex: RegExp; export declare const RunCodeBlock: Node;