site/node_modules/remark-parse/lib/index.d.ts
2024-10-14 08:09:33 +02:00

27 lines
993 B
TypeScript

/**
* Aadd support for parsing from markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function remarkParse(options?: Readonly<Options> | null | undefined): undefined;
export default class remarkParse {
/**
* Aadd support for parsing from markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
constructor(options?: Readonly<Options> | null | undefined);
parser: (document: string, file: import("vfile").VFile) => import("mdast").Root;
}
export type Root = import('mdast').Root;
export type FromMarkdownOptions = import('mdast-util-from-markdown').Options;
export type Parser = import('unified').Parser<Root>;
export type Processor = import('unified').Processor<Root>;
export type Options = Omit<FromMarkdownOptions, 'extensions' | 'mdastExtensions'>;