index.d.ts 1.0 KB

1234567891011121314151617181920212223242526
  1. /**
  2. * Add support for serializing to markdown.
  3. *
  4. * @param {Readonly<Options> | null | undefined} [options]
  5. * Configuration (optional).
  6. * @returns {undefined}
  7. * Nothing.
  8. */
  9. export default function remarkStringify(options?: Readonly<Options> | null | undefined): undefined;
  10. export default class remarkStringify {
  11. /**
  12. * Add support for serializing to markdown.
  13. *
  14. * @param {Readonly<Options> | null | undefined} [options]
  15. * Configuration (optional).
  16. * @returns {undefined}
  17. * Nothing.
  18. */
  19. constructor(options?: Readonly<Options> | null | undefined);
  20. compiler: (tree: import("mdast").Root, file: import("vfile").VFile) => string;
  21. }
  22. export type Root = import('mdast').Root;
  23. export type ToMarkdownOptions = import('mdast-util-to-markdown').Options;
  24. export type Compiler = import('unified').Compiler<Root, string>;
  25. export type Processor = import('unified').Processor<undefined, undefined, undefined, Root, string>;
  26. export type Options = Omit<ToMarkdownOptions, 'extensions'>;