// Generated by scripts/generate-tsrx-types.mjs for the built package. import type { Element, Parents } from 'hast'; import type { Octane } from 'octane/jsx-runtime'; import { type ComponentBody, type ElementDescriptor } from 'octane'; import type { Options as RemarkRehypeOptions } from 'remark-rehype'; import type { PluggableList } from 'unified'; import type { ComponentProps } from './types'; export interface ExtraProps { node?: Element | undefined; } export type AllowElement = (element: Readonly, index: number, parent: Readonly | undefined) => boolean | null | undefined; export type UrlTransform = (url: string, key: string, node: Readonly) => string | null | undefined; export type Components = { [Key in keyof Octane.JSX.IntrinsicElements]?: ComponentBody | keyof Octane.JSX.IntrinsicElements; } & { inlineCode?: ComponentBody & ExtraProps>; [key: string]: ComponentBody & ExtraProps> | keyof Octane.JSX.IntrinsicElements | undefined; }; export interface Options { allowElement?: AllowElement; allowedElements?: readonly string[]; children?: string; components?: Components; disallowedElements?: readonly string[]; rehypePlugins?: PluggableList; remarkPlugins?: PluggableList; remarkRehypeOptions?: Readonly; skipHtml?: boolean; unwrapDisallowed?: boolean; urlTransform?: UrlTransform; } export declare const Markdown: (options: Readonly) => ElementDescriptor; export declare const defaultUrlTransform: UrlTransform;