revert.d.ts 683 B

123456789101112131415161718192021
  1. /**
  2. * @import {ElementContent} from 'hast'
  3. * @import {Reference, Nodes} from 'mdast'
  4. * @import {State} from './state.js'
  5. */
  6. /**
  7. * Return the content of a reference without definition as plain text.
  8. *
  9. * @param {State} state
  10. * Info passed around.
  11. * @param {Extract<Nodes, Reference>} node
  12. * Reference node (image, link).
  13. * @returns {Array<ElementContent>}
  14. * hast content.
  15. */
  16. export function revert(state: State, node: Extract<Nodes, Reference>): Array<ElementContent>;
  17. import type { State } from './state.js';
  18. import type { Nodes } from 'mdast';
  19. import type { Reference } from 'mdast';
  20. import type { ElementContent } from 'hast';
  21. //# sourceMappingURL=revert.d.ts.map