site/node_modules/remark-stringify/lib/index.d.ts

27 lines
1 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Add support for serializing to markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function remarkStringify(options?: Readonly<Options> | null | undefined): undefined;
export default class remarkStringify {
/**
* Add support for serializing to markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
constructor(options?: Readonly<Options> | null | undefined);
compiler: (tree: import("mdast").Root, file: import("vfile").VFile) => string;
}
export type Root = import('mdast').Root;
export type ToMarkdownOptions = import('mdast-util-to-markdown').Options;
export type Compiler = import('unified').Compiler<Root, string>;
export type Processor = import('unified').Processor<undefined, undefined, undefined, Root, string>;
export type Options = Omit<ToMarkdownOptions, 'extensions'>;