/* tslint:disable */
/* eslint-disable */

/**
 * The type of an inline text annotation.
 *
 * Uses internally tagged representation (`"annotation_type": "bold"`) for JSON serialization.
 */
export class WasmAnnotationKind {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmAnnotationKind;
    constructor();
    annotationType: string;
    get title(): string | undefined;
    set title(value: string | null | undefined);
    get url(): string | undefined;
    set url(value: string | null | undefined);
}

/**
 * Code block fence style in Markdown output.
 *
 * Determines how code blocks (`<pre><code>`) are rendered in Markdown.
 */
export enum WasmCodeBlockStyle {
    Indented = 0,
    Backticks = 1,
    Tildes = 2,
}

/**
 * Main conversion options for HTML to Markdown conversion.
 *
 * Use `ConversionOptions.builder()` to construct, or `Default.default()` for defaults.
 *
 * # Example
 */
export class WasmConversionOptions {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmConversionOptions;
    constructor(headingStyle?: WasmHeadingStyle | null, listIndentType?: WasmListIndentType | null, listIndentWidth?: number | null, bullets?: string | null, strongEmSymbol?: string | null, escapeAsterisks?: boolean | null, escapeUnderscores?: boolean | null, escapeMisc?: boolean | null, escapeAscii?: boolean | null, codeLanguage?: string | null, autolinks?: boolean | null, defaultTitle?: boolean | null, brInTables?: boolean | null, compactTables?: boolean | null, highlightStyle?: WasmHighlightStyle | null, extractMetadata?: boolean | null, whitespaceMode?: WasmWhitespaceMode | null, stripNewlines?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, convertAsInline?: boolean | null, subSymbol?: string | null, supSymbol?: string | null, newlineStyle?: WasmNewlineStyle | null, codeBlockStyle?: WasmCodeBlockStyle | null, keepInlineImagesIn?: string[] | null, preprocessing?: WasmPreprocessingOptions | null, encoding?: string | null, debug?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, skipImages?: boolean | null, urlEscapeStyle?: WasmUrlEscapeStyle | null, linkStyle?: WasmLinkStyle | null, outputFormat?: WasmOutputFormat | null, includeDocumentStructure?: boolean | null, extractImages?: boolean | null, maxImageSize?: bigint | null, captureSvg?: boolean | null, inferDimensions?: boolean | null, excludeSelectors?: string[] | null, tierStrategy?: WasmTierStrategy | null, maxDepth?: number | null);
    autolinks: boolean;
    brInTables: boolean;
    bullets: string;
    captureSvg: boolean;
    get codeBlockStyle(): string;
    set codeBlockStyle(value: WasmCodeBlockStyle);
    codeLanguage: string;
    compactTables: boolean;
    convertAsInline: boolean;
    debug: boolean;
    defaultTitle: boolean;
    encoding: string;
    escapeAscii: boolean;
    escapeAsterisks: boolean;
    escapeMisc: boolean;
    escapeUnderscores: boolean;
    excludeSelectors: string[];
    extractImages: boolean;
    extractMetadata: boolean;
    get headingStyle(): string;
    set headingStyle(value: WasmHeadingStyle);
    get highlightStyle(): string;
    set highlightStyle(value: WasmHighlightStyle);
    includeDocumentStructure: boolean;
    inferDimensions: boolean;
    keepInlineImagesIn: string[];
    get linkStyle(): string;
    set linkStyle(value: WasmLinkStyle);
    get listIndentType(): string;
    set listIndentType(value: WasmListIndentType);
    listIndentWidth: number;
    get maxDepth(): number | undefined;
    set maxDepth(value: number | null | undefined);
    maxImageSize: bigint;
    get newlineStyle(): string;
    set newlineStyle(value: WasmNewlineStyle);
    get outputFormat(): string;
    set outputFormat(value: WasmOutputFormat);
    preprocessing: WasmPreprocessingOptions;
    preserveTags: string[];
    skipImages: boolean;
    stripNewlines: boolean;
    stripTags: string[];
    strongEmSymbol: string;
    subSymbol: string;
    supSymbol: string;
    get tierStrategy(): string;
    set tierStrategy(value: WasmTierStrategy);
    get urlEscapeStyle(): string;
    set urlEscapeStyle(value: WasmUrlEscapeStyle);
    get visitor(): WasmVisitorHandle | undefined;
    set visitor(value: WasmVisitorHandle | null | undefined);
    get whitespaceMode(): string;
    set whitespaceMode(value: WasmWhitespaceMode);
    wrap: boolean;
    wrapWidth: number;
}

/**
 * Partial update for `ConversionOptions`.
 *
 * Uses `Option<T>` fields for selective updates. Bindings use this to construct
 * options from language-native types. Prefer `ConversionOptionsBuilder` for Rust code.
 */
export class WasmConversionOptionsUpdate {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmConversionOptionsUpdate;
    constructor(headingStyle?: WasmHeadingStyle | null, listIndentType?: WasmListIndentType | null, listIndentWidth?: number | null, bullets?: string | null, strongEmSymbol?: string | null, escapeAsterisks?: boolean | null, escapeUnderscores?: boolean | null, escapeMisc?: boolean | null, escapeAscii?: boolean | null, codeLanguage?: string | null, autolinks?: boolean | null, defaultTitle?: boolean | null, brInTables?: boolean | null, compactTables?: boolean | null, highlightStyle?: WasmHighlightStyle | null, extractMetadata?: boolean | null, whitespaceMode?: WasmWhitespaceMode | null, stripNewlines?: boolean | null, wrap?: boolean | null, wrapWidth?: number | null, convertAsInline?: boolean | null, subSymbol?: string | null, supSymbol?: string | null, newlineStyle?: WasmNewlineStyle | null, codeBlockStyle?: WasmCodeBlockStyle | null, keepInlineImagesIn?: string[] | null, preprocessing?: WasmPreprocessingOptionsUpdate | null, encoding?: string | null, debug?: boolean | null, stripTags?: string[] | null, preserveTags?: string[] | null, skipImages?: boolean | null, urlEscapeStyle?: WasmUrlEscapeStyle | null, linkStyle?: WasmLinkStyle | null, outputFormat?: WasmOutputFormat | null, includeDocumentStructure?: boolean | null, extractImages?: boolean | null, maxImageSize?: bigint | null, captureSvg?: boolean | null, inferDimensions?: boolean | null, maxDepth?: number | null, excludeSelectors?: string[] | null, tierStrategy?: WasmTierStrategy | null);
    get autolinks(): boolean | undefined;
    set autolinks(value: boolean | null | undefined);
    get brInTables(): boolean | undefined;
    set brInTables(value: boolean | null | undefined);
    get bullets(): string | undefined;
    set bullets(value: string | null | undefined);
    get captureSvg(): boolean | undefined;
    set captureSvg(value: boolean | null | undefined);
    get codeBlockStyle(): string | undefined;
    set codeBlockStyle(value: WasmCodeBlockStyle | null | undefined);
    get codeLanguage(): string | undefined;
    set codeLanguage(value: string | null | undefined);
    get compactTables(): boolean | undefined;
    set compactTables(value: boolean | null | undefined);
    get convertAsInline(): boolean | undefined;
    set convertAsInline(value: boolean | null | undefined);
    get debug(): boolean | undefined;
    set debug(value: boolean | null | undefined);
    get defaultTitle(): boolean | undefined;
    set defaultTitle(value: boolean | null | undefined);
    get encoding(): string | undefined;
    set encoding(value: string | null | undefined);
    get escapeAscii(): boolean | undefined;
    set escapeAscii(value: boolean | null | undefined);
    get escapeAsterisks(): boolean | undefined;
    set escapeAsterisks(value: boolean | null | undefined);
    get escapeMisc(): boolean | undefined;
    set escapeMisc(value: boolean | null | undefined);
    get escapeUnderscores(): boolean | undefined;
    set escapeUnderscores(value: boolean | null | undefined);
    get excludeSelectors(): string[] | undefined;
    set excludeSelectors(value: string[] | null | undefined);
    get extractImages(): boolean | undefined;
    set extractImages(value: boolean | null | undefined);
    get extractMetadata(): boolean | undefined;
    set extractMetadata(value: boolean | null | undefined);
    get headingStyle(): string | undefined;
    set headingStyle(value: WasmHeadingStyle | null | undefined);
    get highlightStyle(): string | undefined;
    set highlightStyle(value: WasmHighlightStyle | null | undefined);
    get includeDocumentStructure(): boolean | undefined;
    set includeDocumentStructure(value: boolean | null | undefined);
    get inferDimensions(): boolean | undefined;
    set inferDimensions(value: boolean | null | undefined);
    get keepInlineImagesIn(): string[] | undefined;
    set keepInlineImagesIn(value: string[] | null | undefined);
    get linkStyle(): string | undefined;
    set linkStyle(value: WasmLinkStyle | null | undefined);
    get listIndentType(): string | undefined;
    set listIndentType(value: WasmListIndentType | null | undefined);
    get listIndentWidth(): number | undefined;
    set listIndentWidth(value: number | null | undefined);
    get maxDepth(): number | undefined;
    set maxDepth(value: number | null | undefined);
    get maxImageSize(): bigint | undefined;
    set maxImageSize(value: bigint | null | undefined);
    get newlineStyle(): string | undefined;
    set newlineStyle(value: WasmNewlineStyle | null | undefined);
    get outputFormat(): string | undefined;
    set outputFormat(value: WasmOutputFormat | null | undefined);
    get preprocessing(): WasmPreprocessingOptionsUpdate | undefined;
    set preprocessing(value: WasmPreprocessingOptionsUpdate | null | undefined);
    get preserveTags(): string[] | undefined;
    set preserveTags(value: string[] | null | undefined);
    get skipImages(): boolean | undefined;
    set skipImages(value: boolean | null | undefined);
    get stripNewlines(): boolean | undefined;
    set stripNewlines(value: boolean | null | undefined);
    get stripTags(): string[] | undefined;
    set stripTags(value: string[] | null | undefined);
    get strongEmSymbol(): string | undefined;
    set strongEmSymbol(value: string | null | undefined);
    get subSymbol(): string | undefined;
    set subSymbol(value: string | null | undefined);
    get supSymbol(): string | undefined;
    set supSymbol(value: string | null | undefined);
    get tierStrategy(): string | undefined;
    set tierStrategy(value: WasmTierStrategy | null | undefined);
    get urlEscapeStyle(): string | undefined;
    set urlEscapeStyle(value: WasmUrlEscapeStyle | null | undefined);
    get visitor(): WasmVisitorHandle | undefined;
    set visitor(value: WasmVisitorHandle | null | undefined);
    get whitespaceMode(): string | undefined;
    set whitespaceMode(value: WasmWhitespaceMode | null | undefined);
    get wrap(): boolean | undefined;
    set wrap(value: boolean | null | undefined);
    get wrapWidth(): number | undefined;
    set wrapWidth(value: number | null | undefined);
}

/**
 * The primary result of HTML conversion and extraction.
 *
 * Contains the converted text output, optional structured document tree,
 * metadata, extracted tables, images, and processing warnings.
 *
 * # Example
 *
 * ```text
 * use html_to_markdown_rs::{convert, ConversionOptions};
 *
 * let result = convert("<h1>Hello</h1><p>World</p>", None)?;
 * assert!(result.content.is_some());
 * assert!(result.warnings.is_empty());
 * ```
 */
export class WasmConversionResult {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmConversionResult;
    constructor(tables?: WasmTableData[] | null, warnings?: WasmProcessingWarning[] | null, content?: string | null, document?: WasmDocumentStructure | null);
    get content(): string | undefined;
    set content(value: string | null | undefined);
    get document(): WasmDocumentStructure | undefined;
    set document(value: WasmDocumentStructure | null | undefined);
    metadata: WasmHtmlMetadata;
    tables: WasmTableData[];
    warnings: WasmProcessingWarning[];
}

/**
 * Document-level metadata extracted from `<head>` and top-level elements.
 *
 * Contains all metadata typically used by search engines, social media platforms,
 * and browsers for document indexing and presentation.
 *
 * # Examples
 */
export class WasmDocumentMetadata {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmDocumentMetadata;
    constructor(keywords?: string[] | null, openGraph?: any | null, twitterCard?: any | null, metaTags?: any | null, title?: string | null, description?: string | null, author?: string | null, canonicalUrl?: string | null, baseHref?: string | null, language?: string | null, textDirection?: WasmTextDirection | null);
    get author(): string | undefined;
    set author(value: string | null | undefined);
    get baseHref(): string | undefined;
    set baseHref(value: string | null | undefined);
    get canonicalUrl(): string | undefined;
    set canonicalUrl(value: string | null | undefined);
    get description(): string | undefined;
    set description(value: string | null | undefined);
    keywords: string[];
    get language(): string | undefined;
    set language(value: string | null | undefined);
    metaTags: any;
    openGraph: any;
    get textDirection(): string | undefined;
    set textDirection(value: WasmTextDirection | null | undefined);
    get title(): string | undefined;
    set title(value: string | null | undefined);
    twitterCard: any;
}

/**
 * A single node in the document tree.
 */
export class WasmDocumentNode {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmDocumentNode;
    constructor(id: string, content: any, children: Uint32Array, annotations: WasmTextAnnotation[], parent?: number | null, attributes?: any | null);
    annotations: WasmTextAnnotation[];
    get attributes(): any | undefined;
    set attributes(value: any | null | undefined);
    children: Uint32Array;
    content: any;
    id: string;
    get parent(): number | undefined;
    set parent(value: number | null | undefined);
}

/**
 * A structured document tree representing the semantic content of an HTML document.
 *
 * Uses a flat node array with index-based parent/child references for efficient traversal.
 */
export class WasmDocumentStructure {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmDocumentStructure;
    constructor(nodes: WasmDocumentNode[], sourceFormat?: string | null);
    nodes: WasmDocumentNode[];
    get sourceFormat(): string | undefined;
    set sourceFormat(value: string | null | undefined);
}

/**
 * A single cell in a table grid.
 */
export class WasmGridCell {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmGridCell;
    constructor(content: string, row: number, col: number, rowSpan: number, colSpan: number, isHeader: boolean);
    col: number;
    colSpan: number;
    content: string;
    isHeader: boolean;
    row: number;
    rowSpan: number;
}

/**
 * Header element metadata with hierarchy tracking.
 *
 * Captures heading elements (h1-h6) with their text content, identifiers,
 * and position in the document structure.
 *
 * # Examples
 */
export class WasmHeaderMetadata {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmHeaderMetadata;
    /**
     * Validate that the header level is within valid range (1-6).
     *
     * # Returns
     *
     * `true` if level is 1-6, `false` otherwise.
     *
     * # Examples
     */
    isValid(): boolean;
    constructor(level: number, text: string, depth: number, htmlOffset: number, id?: string | null);
    depth: number;
    htmlOffset: number;
    get id(): string | undefined;
    set id(value: string | null | undefined);
    level: number;
    text: string;
}

/**
 * Heading style options for Markdown output.
 *
 * Controls how headings (h1-h6) are rendered in the output Markdown.
 */
export enum WasmHeadingStyle {
    Underlined = 0,
    Atx = 1,
    AtxClosed = 2,
}

/**
 * Highlight rendering style for `<mark>` elements.
 *
 * Controls how highlighted text is rendered in Markdown output.
 */
export enum WasmHighlightStyle {
    DoubleEqual = 0,
    Html = 1,
    Bold = 2,
    None = 3,
}

/**
 * Comprehensive metadata extraction result from HTML document.
 *
 * Contains all extracted metadata types in a single structure,
 * suitable for serialization and transmission across language boundaries.
 *
 * # Examples
 */
export class WasmHtmlMetadata {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmHtmlMetadata;
    constructor(document?: WasmDocumentMetadata | null, headers?: WasmHeaderMetadata[] | null, links?: WasmLinkMetadata[] | null, images?: WasmImageMetadata[] | null, structuredData?: WasmStructuredData[] | null);
    document: WasmDocumentMetadata;
    headers: WasmHeaderMetadata[];
    images: WasmImageMetadata[];
    links: WasmLinkMetadata[];
    structuredData: WasmStructuredData[];
}

/**
 * Image dimensions in pixels.
 *
 * Binding-safe replacement for `(u32, u32)` tuples, which degrade to
 * `Vec<Vec<String>>` when sanitized for cross-language binding generation.
 * Used by both `ImageMetadata` and
 * `InlineImage`.
 */
export class WasmImageDimensions {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmImageDimensions;
    constructor(width: number, height: number);
    height: number;
    width: number;
}

/**
 * Image metadata with source and dimensions.
 *
 * Captures `<img>` elements and inline `<svg>` elements with metadata
 * for image analysis and optimization.
 *
 * # Examples
 */
export class WasmImageMetadata {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmImageMetadata;
    constructor(src: string, imageType: WasmImageType, attributes: any, alt?: string | null, title?: string | null, dimensions?: WasmImageDimensions | null);
    get alt(): string | undefined;
    set alt(value: string | null | undefined);
    attributes: any;
    get dimensions(): WasmImageDimensions | undefined;
    set dimensions(value: WasmImageDimensions | null | undefined);
    get imageType(): string;
    set imageType(value: WasmImageType);
    src: string;
    get title(): string | undefined;
    set title(value: string | null | undefined);
}

/**
 * Image source classification for proper handling and processing.
 *
 * Determines whether an image is embedded (data URI), inline SVG, external, or relative.
 */
export enum WasmImageType {
    DataUri = 0,
    InlineSvg = 1,
    External = 2,
    Relative = 3,
}

/**
 * Hyperlink metadata with categorization and attributes.
 *
 * Represents `<a>` elements with parsed href values, text content, and link type classification.
 *
 * # Examples
 */
export class WasmLinkMetadata {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmLinkMetadata;
    constructor(href: string, text: string, linkType: WasmLinkType, rel: string[], attributes: any, title?: string | null);
    attributes: any;
    href: string;
    get linkType(): string;
    set linkType(value: WasmLinkType);
    rel: string[];
    text: string;
    get title(): string | undefined;
    set title(value: string | null | undefined);
}

/**
 * Link rendering style in Markdown output.
 *
 * Controls whether links and images use inline `[text](url)` syntax or
 * reference-style `[text][1]` syntax with definitions collected at the end.
 */
export enum WasmLinkStyle {
    Inline = 0,
    Reference = 1,
}

/**
 * Link classification based on href value and document context.
 *
 * Used to categorize links during extraction for filtering and analysis.
 */
export enum WasmLinkType {
    Anchor = 0,
    Internal = 1,
    External = 2,
    Email = 3,
    Phone = 4,
    Other = 5,
}

/**
 * List indentation character type.
 *
 * Controls whether list items are indented with spaces or tabs.
 */
export enum WasmListIndentType {
    Spaces = 0,
    Tabs = 1,
}

/**
 * A single key-value metadata entry from `<head>` meta tags.
 *
 * Binding-safe replacement for `(String, String)` tuples used in
 * `NodeContent.MetadataBlock`. Tuple pairs cannot be represented
 * across language boundaries without lossy degradation.
 */
export class WasmMetadataEntry {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmMetadataEntry;
    constructor(key: string, value: string);
    key: string;
    value: string;
}

/**
 * Line break syntax in Markdown output.
 *
 * Controls how soft line breaks (from `<br>` or line breaks in source) are rendered.
 */
export enum WasmNewlineStyle {
    Spaces = 0,
    Backslash = 1,
}

/**
 * The semantic content type of a document node.
 *
 * Uses internally tagged representation (`"node_type": "heading"`) for JSON serialization.
 */
export class WasmNodeContent {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmNodeContent;
    constructor();
    get content(): string | undefined;
    set content(value: string | null | undefined);
    get definition(): string | undefined;
    set definition(value: string | null | undefined);
    get description(): string | undefined;
    set description(value: string | null | undefined);
    get entries(): WasmMetadataEntry[] | undefined;
    set entries(value: WasmMetadataEntry[] | null | undefined);
    get format(): string | undefined;
    set format(value: string | null | undefined);
    get grid(): WasmTableGrid | undefined;
    set grid(value: WasmTableGrid | null | undefined);
    get headingLevel(): number | undefined;
    set headingLevel(value: number | null | undefined);
    get headingText(): string | undefined;
    set headingText(value: string | null | undefined);
    get imageIndex(): number | undefined;
    set imageIndex(value: number | null | undefined);
    get label(): string | undefined;
    set label(value: string | null | undefined);
    get language(): string | undefined;
    set language(value: string | null | undefined);
    get level(): number | undefined;
    set level(value: number | null | undefined);
    nodeType: string;
    get ordered(): boolean | undefined;
    set ordered(value: boolean | null | undefined);
    get src(): string | undefined;
    set src(value: string | null | undefined);
    get term(): string | undefined;
    set term(value: string | null | undefined);
    get text(): string | undefined;
    set text(value: string | null | undefined);
}

/**
 * Context information passed to all visitor methods.
 *
 * Provides comprehensive metadata about the current node being visited,
 * including its type, tag name, position in the DOM tree, and parent context.
 *
 * ## Attributes
 *
 * Access attributes via `NodeContext.attributes`, which returns
 * `&BTreeMap<String, String>`. When the context was built with
 * `NodeContext.with_lazy_attributes` (the hot path inside the converter),
 * the map is only materialized on the first call — if the visitor never reads
 * attributes, the allocation is skipped.
 *
 * ## Lifetimes
 *
 * String fields use `Cow<'_, str>` so the converter can pass slices directly
 * out of the parsed DOM without allocating. Visitor implementations that need
 * to outlive the callback should call `NodeContext.into_owned`.
 */
export class WasmNodeContext {
    free(): void;
    [Symbol.dispose](): void;
    /**
     * Return a reference to the attribute map.
     *
     * If the context was built with `NodeContext.with_lazy_attributes`, the
     * map is materialized on the first call and cached for subsequent calls.
     * If this method is never called, no allocation occurs for attributes.
     */
    attributes(): any;
    static default(): WasmNodeContext;
    /**
     * Promote any borrowed fields into owned storage so the context can outlive `'a`.
     */
    intoOwned(): WasmNodeContext;
    constructor(nodeType: WasmNodeType, tagName: string, depth: number, indexInParent: number, isInline: boolean, parentTag?: string | null);
    /**
     * Construct a `NodeContext` with an owned attribute map.
     *
     * Prefer `NodeContext.with_lazy_attributes` (pub(crate)) inside the
     * converter to avoid the eager `collect_tag_attributes` allocation.
     */
    static withOwnedAttributes(node_type: WasmNodeType, tag_name: string, attributes: any, depth: number, index_in_parent: number, parent_tag: string | null | undefined, is_inline: boolean): WasmNodeContext;
    depth: number;
    indexInParent: number;
    isInline: boolean;
    get nodeType(): string;
    set nodeType(value: WasmNodeType);
    get parentTag(): string | undefined;
    set parentTag(value: string | null | undefined);
    tagName: string;
}

/**
 * Node type enumeration covering all HTML element types.
 *
 * This enum categorizes all HTML elements that the converter recognizes,
 * providing a coarse-grained classification for visitor dispatch.
 */
export enum WasmNodeType {
    Text = 0,
    Element = 1,
    Heading = 2,
    Paragraph = 3,
    Div = 4,
    Blockquote = 5,
    Pre = 6,
    Hr = 7,
    List = 8,
    ListItem = 9,
    DefinitionList = 10,
    DefinitionTerm = 11,
    DefinitionDescription = 12,
    Table = 13,
    TableRow = 14,
    TableCell = 15,
    TableHeader = 16,
    TableBody = 17,
    TableHead = 18,
    TableFoot = 19,
    Link = 20,
    Image = 21,
    Strong = 22,
    Em = 23,
    Code = 24,
    Strikethrough = 25,
    Underline = 26,
    Subscript = 27,
    Superscript = 28,
    Mark = 29,
    Small = 30,
    Br = 31,
    Span = 32,
    Article = 33,
    Section = 34,
    Nav = 35,
    Aside = 36,
    Header = 37,
    Footer = 38,
    Main = 39,
    Figure = 40,
    Figcaption = 41,
    Time = 42,
    Details = 43,
    Summary = 44,
    Form = 45,
    Input = 46,
    Select = 47,
    Option = 48,
    Button = 49,
    Textarea = 50,
    Label = 51,
    Fieldset = 52,
    Legend = 53,
    Audio = 54,
    Video = 55,
    Picture = 56,
    Source = 57,
    Iframe = 58,
    Svg = 59,
    Canvas = 60,
    Ruby = 61,
    Rt = 62,
    Rp = 63,
    Abbr = 64,
    Kbd = 65,
    Samp = 66,
    Var = 67,
    Cite = 68,
    Q = 69,
    Del = 70,
    Ins = 71,
    Data = 72,
    Meter = 73,
    Progress = 74,
    Output = 75,
    Template = 76,
    Slot = 77,
    Html = 78,
    Head = 79,
    Body = 80,
    Title = 81,
    Meta = 82,
    LinkTag = 83,
    Style = 84,
    Script = 85,
    Base = 86,
    Custom = 87,
}

/**
 * Output format for conversion.
 *
 * Specifies the target markup language format for the conversion output.
 */
export enum WasmOutputFormat {
    Markdown = 0,
    Djot = 1,
    Plain = 2,
}

/**
 * HTML preprocessing options for document cleanup before conversion.
 */
export class WasmPreprocessingOptions {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmPreprocessingOptions;
    constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, removeNavigation?: boolean | null, removeForms?: boolean | null);
    enabled: boolean;
    get preset(): string;
    set preset(value: WasmPreprocessingPreset);
    removeForms: boolean;
    removeNavigation: boolean;
}

/**
 * Partial update for `PreprocessingOptions`.
 *
 * This struct uses `Option<T>` to represent optional fields that can be selectively updated.
 * Only specified fields (values) will override existing options; undefined values leave the
 * corresponding fields unchanged when applied via `PreprocessingOptions.apply_update`.
 */
export class WasmPreprocessingOptionsUpdate {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmPreprocessingOptionsUpdate;
    constructor(enabled?: boolean | null, preset?: WasmPreprocessingPreset | null, removeNavigation?: boolean | null, removeForms?: boolean | null);
    get enabled(): boolean | undefined;
    set enabled(value: boolean | null | undefined);
    get preset(): string | undefined;
    set preset(value: WasmPreprocessingPreset | null | undefined);
    get removeForms(): boolean | undefined;
    set removeForms(value: boolean | null | undefined);
    get removeNavigation(): boolean | undefined;
    set removeNavigation(value: boolean | null | undefined);
}

/**
 * HTML preprocessing aggressiveness level.
 *
 * Controls the extent of cleanup performed before conversion. Higher levels remove more elements.
 */
export enum WasmPreprocessingPreset {
    Minimal = 0,
    Standard = 1,
    Aggressive = 2,
}

/**
 * A non-fatal diagnostic produced during HTML conversion.
 *
 * Warnings indicate that conversion completed but some content may have been handled
 * differently than expected — for example, an image that could not be extracted, a truncated
 * input, or malformed HTML that was repaired with best-effort parsing.
 *
 * Conversion always succeeds (returns `ConversionResult`) even when warnings are
 * present. Callers should inspect `warnings` and decide how to
 * handle them based on their tolerance for partial results:
 *
 * - **Logging pipelines**: emit each warning at `WARN` level and continue.
 * - **Strict pipelines**: treat any warning as a hard error by checking
 *   `result.warnings.is_empty()` before using the output.
 *
 * See `WarningKind` for the full taxonomy of warning categories.
 */
export class WasmProcessingWarning {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmProcessingWarning;
    constructor(message: string, kind: WasmWarningKind);
    get kind(): string;
    set kind(value: WasmWarningKind);
    message: string;
}

/**
 * Structured data block (JSON-LD, Microdata, or `RDFa`).
 *
 * Represents machine-readable structured data found in the document.
 * JSON-LD blocks are collected as raw JSON strings for flexibility.
 *
 * # Examples
 */
export class WasmStructuredData {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmStructuredData;
    constructor(dataType: WasmStructuredDataType, rawJson: string, schemaType?: string | null);
    get dataType(): string;
    set dataType(value: WasmStructuredDataType);
    rawJson: string;
    get schemaType(): string | undefined;
    set schemaType(value: string | null | undefined);
}

/**
 * Structured data format type.
 *
 * Identifies the schema/format used for structured data markup.
 */
export enum WasmStructuredDataType {
    JsonLd = 0,
    Microdata = 1,
    RDFa = 2,
}

/**
 * A top-level extracted table with both structured data and markdown representation.
 */
export class WasmTableData {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmTableData;
    constructor(grid: WasmTableGrid, markdown: string);
    grid: WasmTableGrid;
    markdown: string;
}

/**
 * A structured table grid with cell-level data including spans.
 */
export class WasmTableGrid {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmTableGrid;
    constructor(rows?: number | null, cols?: number | null, cells?: WasmGridCell[] | null);
    cells: WasmGridCell[];
    cols: number;
    rows: number;
}

/**
 * A styling or semantic annotation that applies to a byte range within a node's text.
 *
 * Unlike `DocumentNode`, which captures block-level structure (headings, paragraphs, etc.),
 * a `TextAnnotation` describes inline-level markup — bold, italic, links, code spans, and
 * similar — that spans a contiguous run of bytes inside `DocumentNode.content`'s text field.
 *
 * Byte offsets (`start`..`end`) are into the UTF-8 encoded text of the parent node. The range
 * follows Rust slice conventions: `start` is inclusive and `end` is exclusive, so the annotated
 * text is `text[start as usize..end as usize]`.
 *
 * Multiple annotations on the same node can overlap (e.g. bold-italic text), and they are
 * stored in the order they are encountered during DOM traversal.
 *
 * See `AnnotationKind` for the full list of supported annotation types.
 */
export class WasmTextAnnotation {
    free(): void;
    [Symbol.dispose](): void;
    static default(): WasmTextAnnotation;
    constructor(start: number, end: number, kind: any);
    end: number;
    kind: any;
    start: number;
}

/**
 * Text directionality of document content.
 *
 * Corresponds to the HTML `dir` attribute and `bdi` element directionality.
 */
export enum WasmTextDirection {
    LeftToRight = 0,
    RightToLeft = 1,
    Auto = 2,
}

/**
 * Controls which conversion tier is used.
 */
export enum WasmTierStrategy {
    Auto = 0,
    Tier2 = 1,
    Tier1 = 2,
}

/**
 * URL encoding strategy for link and image destinations.
 *
 * Controls how special characters in URL destinations are handled when they
 * require escaping to produce valid Markdown.
 *
 * The `Angle` variant (default) wraps the destination in angle brackets:
 * `[text](<url with spaces>)`. This is the CommonMark-specified escape hatch
 * but breaks when the URL itself contains `>`.
 *
 * The `Percent` variant percent-encodes every character that is not an RFC 3986
 * unreserved character or `/`, producing a destination safe for all Markdown
 * parsers: `[text](url%20with%20spaces)`.
 */
export enum WasmUrlEscapeStyle {
    Angle = 0,
    Percent = 1,
}

/**
 * Result of a visitor callback.
 *
 * Allows visitors to control the conversion flow by either proceeding
 * with default behavior, providing custom output, skipping elements,
 * preserving HTML, or signaling errors.
 */
export enum WasmVisitResult {
    Continue = 0,
    Custom = 1,
    Skip = 2,
    PreserveHtml = 3,
    Error = 4,
}

/**
 * Shareable, thread-safe handle to a user-provided HTML visitor implementation.
 *
 * Pass an instance wrapped in this handle to `ConversionOptions` to
 * customise how the HTML document is traversed and converted to Markdown.
 * The handle may be cloned and shared across threads without additional
 * synchronisation on the caller's side.
 */
export class WasmVisitorHandle {
    free(): void;
    [Symbol.dispose](): void;
    constructor(visitor: any);
}

/**
 * Categories of processing warnings.
 */
export enum WasmWarningKind {
    ImageExtractionFailed = 0,
    EncodingFallback = 1,
    TruncatedInput = 2,
    MalformedHtml = 3,
    SanitizationApplied = 4,
    DepthLimitExceeded = 5,
}

/**
 * Whitespace handling strategy during conversion.
 *
 * Determines how sequences of whitespace characters (spaces, tabs, newlines) are processed.
 */
export enum WasmWhitespaceMode {
    Normalized = 0,
    Strict = 1,
}

/**
 * Convert HTML to Markdown, returning a `ConversionResult` with content, metadata, images,
 * and warnings.
 *
 * # Arguments
 *
 * * `html` — the HTML string to convert.
 * * `options` — conversion options. The parameter bound is
 *   `impl Into<Option<ConversionOptions>>`, so any of the following call shapes are accepted:
 *   - `convert(html, ConversionOptions.default())` — bare options.
 *   - `convert(html, opts)` — bare options.
 *   - `convert(html, Some(opts))` — explicit `Option`.
 *   - `convert(html, None)` — fall back to `ConversionOptions.default`.
 *
 * # Example
 *
 *
 * # Errors
 *
 * Returns an error if HTML parsing fails or if the input contains invalid UTF-8.
 */
export function convert(html: string, options?: WasmConversionOptions | null): WasmConversionResult;

export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

export interface InitOutput {
    readonly memory: WebAssembly.Memory;
    readonly __wbg_wasmannotationkind_free: (a: number, b: number) => void;
    readonly __wbg_wasmconversionoptions_free: (a: number, b: number) => void;
    readonly __wbg_wasmconversionoptionsupdate_free: (a: number, b: number) => void;
    readonly __wbg_wasmconversionresult_free: (a: number, b: number) => void;
    readonly __wbg_wasmdocumentmetadata_free: (a: number, b: number) => void;
    readonly __wbg_wasmdocumentnode_free: (a: number, b: number) => void;
    readonly __wbg_wasmdocumentstructure_free: (a: number, b: number) => void;
    readonly __wbg_wasmgridcell_free: (a: number, b: number) => void;
    readonly __wbg_wasmheadermetadata_free: (a: number, b: number) => void;
    readonly __wbg_wasmhtmlmetadata_free: (a: number, b: number) => void;
    readonly __wbg_wasmimagedimensions_free: (a: number, b: number) => void;
    readonly __wbg_wasmimagemetadata_free: (a: number, b: number) => void;
    readonly __wbg_wasmlinkmetadata_free: (a: number, b: number) => void;
    readonly __wbg_wasmmetadataentry_free: (a: number, b: number) => void;
    readonly __wbg_wasmnodecontent_free: (a: number, b: number) => void;
    readonly __wbg_wasmpreprocessingoptions_free: (a: number, b: number) => void;
    readonly __wbg_wasmprocessingwarning_free: (a: number, b: number) => void;
    readonly __wbg_wasmstructureddata_free: (a: number, b: number) => void;
    readonly __wbg_wasmtabledata_free: (a: number, b: number) => void;
    readonly __wbg_wasmtablegrid_free: (a: number, b: number) => void;
    readonly __wbg_wasmtextannotation_free: (a: number, b: number) => void;
    readonly __wbg_wasmvisitorhandle_free: (a: number, b: number) => void;
    readonly convert: (a: number, b: number, c: number, d: number) => void;
    readonly wasmannotationkind_annotationType: (a: number, b: number) => void;
    readonly wasmannotationkind_default: () => number;
    readonly wasmannotationkind_set_annotationType: (a: number, b: number, c: number) => void;
    readonly wasmannotationkind_set_title: (a: number, b: number, c: number) => void;
    readonly wasmannotationkind_set_url: (a: number, b: number, c: number) => void;
    readonly wasmannotationkind_title: (a: number, b: number) => void;
    readonly wasmannotationkind_url: (a: number, b: number) => void;
    readonly wasmconversionoptions_autolinks: (a: number) => number;
    readonly wasmconversionoptions_brInTables: (a: number) => number;
    readonly wasmconversionoptions_bullets: (a: number, b: number) => void;
    readonly wasmconversionoptions_captureSvg: (a: number) => number;
    readonly wasmconversionoptions_codeBlockStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_codeLanguage: (a: number, b: number) => void;
    readonly wasmconversionoptions_compactTables: (a: number) => number;
    readonly wasmconversionoptions_convertAsInline: (a: number) => number;
    readonly wasmconversionoptions_debug: (a: number) => number;
    readonly wasmconversionoptions_default: () => number;
    readonly wasmconversionoptions_defaultTitle: (a: number) => number;
    readonly wasmconversionoptions_encoding: (a: number, b: number) => void;
    readonly wasmconversionoptions_escapeAscii: (a: number) => number;
    readonly wasmconversionoptions_escapeAsterisks: (a: number) => number;
    readonly wasmconversionoptions_escapeMisc: (a: number) => number;
    readonly wasmconversionoptions_escapeUnderscores: (a: number) => number;
    readonly wasmconversionoptions_excludeSelectors: (a: number, b: number) => void;
    readonly wasmconversionoptions_extractImages: (a: number) => number;
    readonly wasmconversionoptions_extractMetadata: (a: number) => number;
    readonly wasmconversionoptions_headingStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_highlightStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_includeDocumentStructure: (a: number) => number;
    readonly wasmconversionoptions_inferDimensions: (a: number) => number;
    readonly wasmconversionoptions_keepInlineImagesIn: (a: number, b: number) => void;
    readonly wasmconversionoptions_linkStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_listIndentType: (a: number, b: number) => void;
    readonly wasmconversionoptions_listIndentWidth: (a: number) => number;
    readonly wasmconversionoptions_maxDepth: (a: number) => number;
    readonly wasmconversionoptions_maxImageSize: (a: number) => bigint;
    readonly wasmconversionoptions_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: bigint, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
    readonly wasmconversionoptions_newlineStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_outputFormat: (a: number, b: number) => void;
    readonly wasmconversionoptions_preprocessing: (a: number) => number;
    readonly wasmconversionoptions_preserveTags: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_autolinks: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_brInTables: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_bullets: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_captureSvg: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_codeBlockStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_codeLanguage: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_compactTables: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_convertAsInline: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_debug: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_defaultTitle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_encoding: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_escapeAscii: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_escapeAsterisks: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_escapeMisc: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_escapeUnderscores: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_excludeSelectors: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_extractImages: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_extractMetadata: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_headingStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_highlightStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_includeDocumentStructure: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_inferDimensions: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_keepInlineImagesIn: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_linkStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_listIndentType: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_listIndentWidth: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_maxDepth: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_maxImageSize: (a: number, b: bigint) => void;
    readonly wasmconversionoptions_set_newlineStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_outputFormat: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_preprocessing: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_preserveTags: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_skipImages: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_stripNewlines: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_stripTags: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_strongEmSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_subSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_supSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptions_set_tierStrategy: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_urlEscapeStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_visitor: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_whitespaceMode: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_wrap: (a: number, b: number) => void;
    readonly wasmconversionoptions_set_wrapWidth: (a: number, b: number) => void;
    readonly wasmconversionoptions_skipImages: (a: number) => number;
    readonly wasmconversionoptions_stripNewlines: (a: number) => number;
    readonly wasmconversionoptions_stripTags: (a: number, b: number) => void;
    readonly wasmconversionoptions_strongEmSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptions_subSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptions_supSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptions_tierStrategy: (a: number, b: number) => void;
    readonly wasmconversionoptions_urlEscapeStyle: (a: number, b: number) => void;
    readonly wasmconversionoptions_visitor: (a: number) => number;
    readonly wasmconversionoptions_whitespaceMode: (a: number, b: number) => void;
    readonly wasmconversionoptions_wrap: (a: number) => number;
    readonly wasmconversionoptions_wrapWidth: (a: number) => number;
    readonly wasmconversionoptionsupdate_autolinks: (a: number) => number;
    readonly wasmconversionoptionsupdate_brInTables: (a: number) => number;
    readonly wasmconversionoptionsupdate_bullets: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_captureSvg: (a: number) => number;
    readonly wasmconversionoptionsupdate_codeBlockStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_codeLanguage: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_compactTables: (a: number) => number;
    readonly wasmconversionoptionsupdate_convertAsInline: (a: number) => number;
    readonly wasmconversionoptionsupdate_debug: (a: number) => number;
    readonly wasmconversionoptionsupdate_default: () => number;
    readonly wasmconversionoptionsupdate_defaultTitle: (a: number) => number;
    readonly wasmconversionoptionsupdate_encoding: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_escapeAscii: (a: number) => number;
    readonly wasmconversionoptionsupdate_escapeAsterisks: (a: number) => number;
    readonly wasmconversionoptionsupdate_escapeMisc: (a: number) => number;
    readonly wasmconversionoptionsupdate_escapeUnderscores: (a: number) => number;
    readonly wasmconversionoptionsupdate_excludeSelectors: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_extractImages: (a: number) => number;
    readonly wasmconversionoptionsupdate_extractMetadata: (a: number) => number;
    readonly wasmconversionoptionsupdate_headingStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_highlightStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_includeDocumentStructure: (a: number) => number;
    readonly wasmconversionoptionsupdate_inferDimensions: (a: number) => number;
    readonly wasmconversionoptionsupdate_keepInlineImagesIn: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_linkStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_listIndentType: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_listIndentWidth: (a: number) => number;
    readonly wasmconversionoptionsupdate_maxDepth: (a: number) => number;
    readonly wasmconversionoptionsupdate_maxImageSize: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number, s: number, t: number, u: number, v: number, w: number, x: number, y: number, z: number, a1: number, b1: number, c1: number, d1: number, e1: number, f1: number, g1: number, h1: number, i1: number, j1: number, k1: number, l1: number, m1: number, n1: number, o1: number, p1: number, q1: number, r1: number, s1: number, t1: number, u1: number, v1: bigint, w1: number, x1: number, y1: number, z1: number, a2: number, b2: number) => number;
    readonly wasmconversionoptionsupdate_newlineStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_outputFormat: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_preprocessing: (a: number) => number;
    readonly wasmconversionoptionsupdate_preserveTags: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_autolinks: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_brInTables: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_bullets: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_captureSvg: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_codeBlockStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_codeLanguage: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_compactTables: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_convertAsInline: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_debug: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_defaultTitle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_encoding: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_escapeAscii: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_escapeAsterisks: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_escapeMisc: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_escapeUnderscores: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_excludeSelectors: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_extractImages: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_extractMetadata: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_headingStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_highlightStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_includeDocumentStructure: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_inferDimensions: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_keepInlineImagesIn: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_linkStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_listIndentType: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_listIndentWidth: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_maxDepth: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_maxImageSize: (a: number, b: number, c: bigint) => void;
    readonly wasmconversionoptionsupdate_set_newlineStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_outputFormat: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_preprocessing: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_preserveTags: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_skipImages: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_stripNewlines: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_stripTags: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_strongEmSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_subSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_supSymbol: (a: number, b: number, c: number) => void;
    readonly wasmconversionoptionsupdate_set_tierStrategy: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_urlEscapeStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_visitor: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_whitespaceMode: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_wrap: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_set_wrapWidth: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_skipImages: (a: number) => number;
    readonly wasmconversionoptionsupdate_stripNewlines: (a: number) => number;
    readonly wasmconversionoptionsupdate_stripTags: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_strongEmSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_subSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_supSymbol: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_tierStrategy: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_urlEscapeStyle: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_visitor: (a: number) => number;
    readonly wasmconversionoptionsupdate_whitespaceMode: (a: number, b: number) => void;
    readonly wasmconversionoptionsupdate_wrap: (a: number) => number;
    readonly wasmconversionoptionsupdate_wrapWidth: (a: number) => number;
    readonly wasmconversionresult_content: (a: number, b: number) => void;
    readonly wasmconversionresult_default: () => number;
    readonly wasmconversionresult_document: (a: number) => number;
    readonly wasmconversionresult_metadata: (a: number) => number;
    readonly wasmconversionresult_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
    readonly wasmconversionresult_set_content: (a: number, b: number, c: number) => void;
    readonly wasmconversionresult_set_document: (a: number, b: number) => void;
    readonly wasmconversionresult_set_metadata: (a: number, b: number) => void;
    readonly wasmconversionresult_set_tables: (a: number, b: number, c: number) => void;
    readonly wasmconversionresult_set_warnings: (a: number, b: number, c: number) => void;
    readonly wasmconversionresult_tables: (a: number, b: number) => void;
    readonly wasmconversionresult_warnings: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_author: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_baseHref: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_canonicalUrl: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_default: () => number;
    readonly wasmdocumentmetadata_description: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_keywords: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_language: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_metaTags: (a: number) => number;
    readonly wasmdocumentmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number, n: number, o: number, p: number, q: number, r: number) => number;
    readonly wasmdocumentmetadata_openGraph: (a: number) => number;
    readonly wasmdocumentmetadata_set_author: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_baseHref: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_canonicalUrl: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_description: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_keywords: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_language: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_metaTags: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_set_openGraph: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_set_textDirection: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_set_title: (a: number, b: number, c: number) => void;
    readonly wasmdocumentmetadata_set_twitterCard: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_textDirection: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_title: (a: number, b: number) => void;
    readonly wasmdocumentmetadata_twitterCard: (a: number) => number;
    readonly wasmdocumentnode_annotations: (a: number, b: number) => void;
    readonly wasmdocumentnode_attributes: (a: number) => number;
    readonly wasmdocumentnode_children: (a: number, b: number) => void;
    readonly wasmdocumentnode_content: (a: number) => number;
    readonly wasmdocumentnode_default: () => number;
    readonly wasmdocumentnode_id: (a: number, b: number) => void;
    readonly wasmdocumentnode_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
    readonly wasmdocumentnode_parent: (a: number) => number;
    readonly wasmdocumentnode_set_annotations: (a: number, b: number, c: number) => void;
    readonly wasmdocumentnode_set_attributes: (a: number, b: number) => void;
    readonly wasmdocumentnode_set_children: (a: number, b: number, c: number) => void;
    readonly wasmdocumentnode_set_content: (a: number, b: number) => void;
    readonly wasmdocumentnode_set_id: (a: number, b: number, c: number) => void;
    readonly wasmdocumentnode_set_parent: (a: number, b: number) => void;
    readonly wasmdocumentstructure_default: () => number;
    readonly wasmdocumentstructure_new: (a: number, b: number, c: number, d: number) => number;
    readonly wasmdocumentstructure_nodes: (a: number, b: number) => void;
    readonly wasmdocumentstructure_set_nodes: (a: number, b: number, c: number) => void;
    readonly wasmdocumentstructure_set_sourceFormat: (a: number, b: number, c: number) => void;
    readonly wasmdocumentstructure_sourceFormat: (a: number, b: number) => void;
    readonly wasmgridcell_col: (a: number) => number;
    readonly wasmgridcell_colSpan: (a: number) => number;
    readonly wasmgridcell_content: (a: number, b: number) => void;
    readonly wasmgridcell_default: () => number;
    readonly wasmgridcell_isHeader: (a: number) => number;
    readonly wasmgridcell_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
    readonly wasmgridcell_row: (a: number) => number;
    readonly wasmgridcell_rowSpan: (a: number) => number;
    readonly wasmgridcell_set_col: (a: number, b: number) => void;
    readonly wasmgridcell_set_colSpan: (a: number, b: number) => void;
    readonly wasmgridcell_set_content: (a: number, b: number, c: number) => void;
    readonly wasmgridcell_set_isHeader: (a: number, b: number) => void;
    readonly wasmgridcell_set_row: (a: number, b: number) => void;
    readonly wasmgridcell_set_rowSpan: (a: number, b: number) => void;
    readonly wasmheadermetadata_default: () => number;
    readonly wasmheadermetadata_htmlOffset: (a: number) => number;
    readonly wasmheadermetadata_id: (a: number, b: number) => void;
    readonly wasmheadermetadata_isValid: (a: number) => number;
    readonly wasmheadermetadata_level: (a: number) => number;
    readonly wasmheadermetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
    readonly wasmheadermetadata_set_htmlOffset: (a: number, b: number) => void;
    readonly wasmheadermetadata_set_id: (a: number, b: number, c: number) => void;
    readonly wasmheadermetadata_set_level: (a: number, b: number) => void;
    readonly wasmheadermetadata_set_text: (a: number, b: number, c: number) => void;
    readonly wasmheadermetadata_text: (a: number, b: number) => void;
    readonly wasmhtmlmetadata_default: () => number;
    readonly wasmhtmlmetadata_document: (a: number) => number;
    readonly wasmhtmlmetadata_headers: (a: number, b: number) => void;
    readonly wasmhtmlmetadata_images: (a: number, b: number) => void;
    readonly wasmhtmlmetadata_links: (a: number, b: number) => void;
    readonly wasmhtmlmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
    readonly wasmhtmlmetadata_set_document: (a: number, b: number) => void;
    readonly wasmhtmlmetadata_set_headers: (a: number, b: number, c: number) => void;
    readonly wasmhtmlmetadata_set_images: (a: number, b: number, c: number) => void;
    readonly wasmhtmlmetadata_set_links: (a: number, b: number, c: number) => void;
    readonly wasmhtmlmetadata_set_structuredData: (a: number, b: number, c: number) => void;
    readonly wasmhtmlmetadata_structuredData: (a: number, b: number) => void;
    readonly wasmimagedimensions_default: () => number;
    readonly wasmimagedimensions_height: (a: number) => number;
    readonly wasmimagedimensions_new: (a: number, b: number) => number;
    readonly wasmimagedimensions_set_height: (a: number, b: number) => void;
    readonly wasmimagedimensions_set_width: (a: number, b: number) => void;
    readonly wasmimagedimensions_width: (a: number) => number;
    readonly wasmimagemetadata_alt: (a: number, b: number) => void;
    readonly wasmimagemetadata_attributes: (a: number) => number;
    readonly wasmimagemetadata_default: () => number;
    readonly wasmimagemetadata_dimensions: (a: number) => number;
    readonly wasmimagemetadata_imageType: (a: number, b: number) => void;
    readonly wasmimagemetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
    readonly wasmimagemetadata_set_alt: (a: number, b: number, c: number) => void;
    readonly wasmimagemetadata_set_attributes: (a: number, b: number) => void;
    readonly wasmimagemetadata_set_dimensions: (a: number, b: number) => void;
    readonly wasmimagemetadata_set_imageType: (a: number, b: number) => void;
    readonly wasmimagemetadata_set_src: (a: number, b: number, c: number) => void;
    readonly wasmimagemetadata_set_title: (a: number, b: number, c: number) => void;
    readonly wasmimagemetadata_src: (a: number, b: number) => void;
    readonly wasmimagemetadata_title: (a: number, b: number) => void;
    readonly wasmlinkmetadata_attributes: (a: number) => number;
    readonly wasmlinkmetadata_default: () => number;
    readonly wasmlinkmetadata_href: (a: number, b: number) => void;
    readonly wasmlinkmetadata_linkType: (a: number, b: number) => void;
    readonly wasmlinkmetadata_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
    readonly wasmlinkmetadata_rel: (a: number, b: number) => void;
    readonly wasmlinkmetadata_set_attributes: (a: number, b: number) => void;
    readonly wasmlinkmetadata_set_href: (a: number, b: number, c: number) => void;
    readonly wasmlinkmetadata_set_linkType: (a: number, b: number) => void;
    readonly wasmlinkmetadata_set_rel: (a: number, b: number, c: number) => void;
    readonly wasmlinkmetadata_set_text: (a: number, b: number, c: number) => void;
    readonly wasmlinkmetadata_set_title: (a: number, b: number, c: number) => void;
    readonly wasmlinkmetadata_text: (a: number, b: number) => void;
    readonly wasmlinkmetadata_title: (a: number, b: number) => void;
    readonly wasmmetadataentry_default: () => number;
    readonly wasmmetadataentry_key: (a: number, b: number) => void;
    readonly wasmmetadataentry_new: (a: number, b: number, c: number, d: number) => number;
    readonly wasmmetadataentry_set_key: (a: number, b: number, c: number) => void;
    readonly wasmmetadataentry_set_value: (a: number, b: number, c: number) => void;
    readonly wasmmetadataentry_value: (a: number, b: number) => void;
    readonly wasmnodecontent_content: (a: number, b: number) => void;
    readonly wasmnodecontent_default: () => number;
    readonly wasmnodecontent_definition: (a: number, b: number) => void;
    readonly wasmnodecontent_description: (a: number, b: number) => void;
    readonly wasmnodecontent_entries: (a: number, b: number) => void;
    readonly wasmnodecontent_format: (a: number, b: number) => void;
    readonly wasmnodecontent_grid: (a: number) => number;
    readonly wasmnodecontent_headingLevel: (a: number) => number;
    readonly wasmnodecontent_headingText: (a: number, b: number) => void;
    readonly wasmnodecontent_label: (a: number, b: number) => void;
    readonly wasmnodecontent_language: (a: number, b: number) => void;
    readonly wasmnodecontent_level: (a: number) => number;
    readonly wasmnodecontent_nodeType: (a: number, b: number) => void;
    readonly wasmnodecontent_set_content: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_definition: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_description: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_entries: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_format: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_grid: (a: number, b: number) => void;
    readonly wasmnodecontent_set_headingLevel: (a: number, b: number) => void;
    readonly wasmnodecontent_set_headingText: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_label: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_language: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_level: (a: number, b: number) => void;
    readonly wasmnodecontent_set_nodeType: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_src: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_term: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_set_text: (a: number, b: number, c: number) => void;
    readonly wasmnodecontent_src: (a: number, b: number) => void;
    readonly wasmnodecontent_term: (a: number, b: number) => void;
    readonly wasmnodecontent_text: (a: number, b: number) => void;
    readonly wasmnodecontext_attributes: (a: number) => number;
    readonly wasmnodecontext_default: () => number;
    readonly wasmnodecontext_intoOwned: (a: number) => number;
    readonly wasmnodecontext_isInline: (a: number) => number;
    readonly wasmnodecontext_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
    readonly wasmnodecontext_nodeType: (a: number, b: number) => void;
    readonly wasmnodecontext_set_isInline: (a: number, b: number) => void;
    readonly wasmnodecontext_set_nodeType: (a: number, b: number) => void;
    readonly wasmnodecontext_withOwnedAttributes: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => number;
    readonly wasmpreprocessingoptions_default: () => number;
    readonly wasmpreprocessingoptions_enabled: (a: number) => number;
    readonly wasmpreprocessingoptions_new: (a: number, b: number, c: number, d: number) => number;
    readonly wasmpreprocessingoptions_preset: (a: number, b: number) => void;
    readonly wasmpreprocessingoptions_removeForms: (a: number) => number;
    readonly wasmpreprocessingoptions_removeNavigation: (a: number) => number;
    readonly wasmpreprocessingoptions_set_enabled: (a: number, b: number) => void;
    readonly wasmpreprocessingoptions_set_preset: (a: number, b: number) => void;
    readonly wasmpreprocessingoptions_set_removeForms: (a: number, b: number) => void;
    readonly wasmpreprocessingoptions_set_removeNavigation: (a: number, b: number) => void;
    readonly wasmpreprocessingoptionsupdate_default: () => number;
    readonly wasmpreprocessingoptionsupdate_enabled: (a: number) => number;
    readonly wasmpreprocessingoptionsupdate_new: (a: number, b: number, c: number, d: number) => number;
    readonly wasmpreprocessingoptionsupdate_preset: (a: number, b: number) => void;
    readonly wasmpreprocessingoptionsupdate_removeForms: (a: number) => number;
    readonly wasmpreprocessingoptionsupdate_removeNavigation: (a: number) => number;
    readonly wasmpreprocessingoptionsupdate_set_enabled: (a: number, b: number) => void;
    readonly wasmpreprocessingoptionsupdate_set_preset: (a: number, b: number) => void;
    readonly wasmpreprocessingoptionsupdate_set_removeForms: (a: number, b: number) => void;
    readonly wasmpreprocessingoptionsupdate_set_removeNavigation: (a: number, b: number) => void;
    readonly wasmprocessingwarning_default: () => number;
    readonly wasmprocessingwarning_kind: (a: number, b: number) => void;
    readonly wasmprocessingwarning_message: (a: number, b: number) => void;
    readonly wasmprocessingwarning_new: (a: number, b: number, c: number) => number;
    readonly wasmprocessingwarning_set_kind: (a: number, b: number) => void;
    readonly wasmprocessingwarning_set_message: (a: number, b: number, c: number) => void;
    readonly wasmstructureddata_dataType: (a: number, b: number) => void;
    readonly wasmstructureddata_default: () => number;
    readonly wasmstructureddata_new: (a: number, b: number, c: number, d: number, e: number) => number;
    readonly wasmstructureddata_rawJson: (a: number, b: number) => void;
    readonly wasmstructureddata_schemaType: (a: number, b: number) => void;
    readonly wasmstructureddata_set_dataType: (a: number, b: number) => void;
    readonly wasmstructureddata_set_rawJson: (a: number, b: number, c: number) => void;
    readonly wasmstructureddata_set_schemaType: (a: number, b: number, c: number) => void;
    readonly wasmtabledata_default: () => number;
    readonly wasmtabledata_grid: (a: number) => number;
    readonly wasmtabledata_markdown: (a: number, b: number) => void;
    readonly wasmtabledata_new: (a: number, b: number, c: number) => number;
    readonly wasmtabledata_set_grid: (a: number, b: number) => void;
    readonly wasmtabledata_set_markdown: (a: number, b: number, c: number) => void;
    readonly wasmtablegrid_cells: (a: number, b: number) => void;
    readonly wasmtablegrid_default: () => number;
    readonly wasmtablegrid_new: (a: number, b: number, c: number, d: number) => number;
    readonly wasmtablegrid_set_cells: (a: number, b: number, c: number) => void;
    readonly wasmtextannotation_default: () => number;
    readonly wasmtextannotation_kind: (a: number) => number;
    readonly wasmtextannotation_new: (a: number, b: number, c: number) => number;
    readonly wasmtextannotation_set_kind: (a: number, b: number) => void;
    readonly wasmvisitorhandle_new: (a: number) => number;
    readonly wasmnodecontent_ordered: (a: number) => number;
    readonly wasmnodecontent_new: () => number;
    readonly wasmheadermetadata_set_depth: (a: number, b: number) => void;
    readonly wasmnodecontext_set_depth: (a: number, b: number) => void;
    readonly wasmnodecontext_set_indexInParent: (a: number, b: number) => void;
    readonly wasmtablegrid_set_cols: (a: number, b: number) => void;
    readonly wasmtablegrid_set_rows: (a: number, b: number) => void;
    readonly wasmtextannotation_set_end: (a: number, b: number) => void;
    readonly wasmtextannotation_set_start: (a: number, b: number) => void;
    readonly wasmnodecontent_set_imageIndex: (a: number, b: number) => void;
    readonly wasmheadermetadata_depth: (a: number) => number;
    readonly wasmnodecontext_depth: (a: number) => number;
    readonly wasmnodecontext_indexInParent: (a: number) => number;
    readonly wasmtablegrid_cols: (a: number) => number;
    readonly wasmtablegrid_rows: (a: number) => number;
    readonly wasmtextannotation_end: (a: number) => number;
    readonly wasmtextannotation_start: (a: number) => number;
    readonly wasmannotationkind_new: () => number;
    readonly wasmnodecontext_parentTag: (a: number, b: number) => void;
    readonly wasmnodecontent_set_ordered: (a: number, b: number) => void;
    readonly wasmnodecontext_set_tagName: (a: number, b: number, c: number) => void;
    readonly wasmnodecontext_set_parentTag: (a: number, b: number, c: number) => void;
    readonly wasmnodecontext_tagName: (a: number, b: number) => void;
    readonly wasmnodecontent_imageIndex: (a: number) => number;
    readonly __wbg_wasmnodecontext_free: (a: number, b: number) => void;
    readonly __wbg_wasmpreprocessingoptionsupdate_free: (a: number, b: number) => void;
    readonly __wbindgen_export: (a: number, b: number) => number;
    readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
    readonly __wbindgen_export3: (a: number) => void;
    readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
    readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
}

export type SyncInitInput = BufferSource | WebAssembly.Module;

/**
 * Instantiates the given `module`, which can either be bytes or
 * a precompiled `WebAssembly.Module`.
 *
 * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
 *
 * @returns {InitOutput}
 */
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;

/**
 * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
 * for everything else, calls `WebAssembly.instantiate` directly.
 *
 * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
 *
 * @returns {Promise<InitOutput>}
 */
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
