import type { ExtractPublicPropTypes, PropType } from "vue"; import type { Style } from "../../core/types.js"; export type TMermaidAsciiTheme = Readonly>; export type TMermaidAsciiOptions = Readonly<{ paddingX?: number; paddingY?: number; boxBorderPadding?: number; theme?: TMermaidAsciiTheme; }>; export type TMermaidResolvedAsciiOptions = TMermaidAsciiOptions & Readonly<{ useAscii: boolean; colorMode: "none"; }>; export type TMermaidRenderer = (code: string, options: TMermaidResolvedAsciiOptions) => string | Promise; export type TMermaidTransientErrorContext = Readonly<{ code: string; final: boolean; streaming: boolean; }>; export type TMermaidTransientErrorClassifier = (error: unknown, context: TMermaidTransientErrorContext) => boolean; export type TMermaidCopyPayload = Readonly<{ text: string; ok: boolean; error?: unknown; }>; export type TMermaidRenderEligibilityContext = Readonly<{ final: boolean; streaming: boolean; }>; export type TMermaidRenderEligibility = (code: string, context: TMermaidRenderEligibilityContext) => boolean; export declare function isSimpleMermaidFlowchartSource(code: string): boolean; export declare function markMermaidRenderErrorFatal(error: unknown): Error; export declare const tMermaidTextProps: { readonly x: { readonly type: NumberConstructor; readonly required: true; }; readonly y: { readonly type: NumberConstructor; readonly required: true; }; readonly w: { readonly type: NumberConstructor; readonly required: true; }; readonly h: { readonly type: NumberConstructor; readonly default: undefined; }; readonly zIndex: { readonly type: NumberConstructor; readonly default: 0; }; readonly content: { readonly type: StringConstructor; readonly default: ""; }; readonly code: { readonly type: StringConstructor; readonly default: undefined; }; readonly style: { readonly type: PropType