import { type HtmdxComponent, type HtmdxComponentDefinitions } from './component-definition'; import { type HtmdxMermaidOptions } from './react/mermaid'; import { HtmdxSourceError, type HtmdxDiagnostic } from './diagnostics'; import { type HtmdxLayoutDefinition } from './layout'; export { THEME_IDS, type HtmdxThemeId } from './themes'; export { VERSION } from './version'; export { HtmdxSourceError }; export { injectShadcnTheme } from './components/shadcn/shared/theme'; export { compileDocument, compileToReact, Htmdx, listComponents } from './react'; export type { HtmdxBlockFailure, HtmdxDocument, HtmdxDocumentOptions, HtmdxReactOptions, } from './react'; export { DEFAULT_MERMAID_SRC, type HtmdxMermaidOptions } from './react/mermaid'; export type { HtmdxDiagnostic, HtmdxDiagnosticCode, HtmdxSeverity } from './diagnostics'; export type { HtmdxLayoutDefinition, HtmdxLayoutProps, HtmdxLayoutSlot } from './layout'; export type HtmdxToken = { type: 'markdown'; value: string; } | { type: 'html'; value: string; } | { type: 'component'; name: string; body: string; }; export type HtmdxCompileResult = { ok: true; html: string; components: string[]; } | { ok: false; error: string; }; export type HtmdxThemeDefinition = { id?: string; css: string; }; export type HtmdxCompileOptions = { definitions?: HtmdxComponentDefinitions; layout?: string; }; export type HtmdxExtensionOptions = { rerender?: boolean; }; export type HtmdxSourceResult = { ok: true; kind: 'embedded' | 'src'; source: string; } | { ok: false; error: string; source?: string; }; export type HtmdxRegisterOptions = { tagName?: string; sourceSelector?: string; theme?: HtmdxThemeDefinition; tailwind?: boolean | { src?: string; }; mermaid?: HtmdxMermaidOptions; automount?: boolean; } & HtmdxCompileOptions; export declare const DEFAULT_TAG_NAME = "htmdx-code"; export declare const DEFAULT_TAILWIND_BROWSER_SRC = "https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"; export declare function compile(source: string, options?: HtmdxCompileOptions): HtmdxCompileResult; export declare function validate(source: string, options?: HtmdxCompileOptions): HtmdxDiagnostic[]; export declare function registerComponent(definition: HtmdxComponent, options?: HtmdxExtensionOptions): Promise | Promise; export declare function registerComponents(definitions: HtmdxComponentDefinitions, options?: HtmdxExtensionOptions): Promise | Promise; export declare function registerTheme(theme: HtmdxThemeDefinition, options?: HtmdxExtensionOptions): Promise | Promise; export declare function registerLayout(definition: HtmdxLayoutDefinition, options?: HtmdxExtensionOptions): Promise | Promise; export declare function rerender(options?: Pick): Promise; export declare function register(options?: HtmdxRegisterOptions): void; export declare function renderHost(host: Element, options?: HtmdxRegisterOptions): Promise; export declare function resolveSource(host: Element, options?: HtmdxRegisterOptions): Promise; export declare function tokenizeBlocks(source: string, options?: HtmdxCompileOptions): HtmdxToken[]; export declare function canonicalComponentName(name: string, options?: HtmdxCompileOptions): string;