link.d.ts 718 B

123456789101112131415161718192021222324
  1. /**
  2. * @param {Link} node
  3. * @param {Parents | undefined} _
  4. * @param {State} state
  5. * @param {Info} info
  6. * @returns {string}
  7. */
  8. export function link(node: Link, _: Parents | undefined, state: State, info: Info): string;
  9. export namespace link {
  10. export { linkPeek as peek };
  11. }
  12. export type Link = import('mdast').Link;
  13. export type Parents = import('mdast').Parents;
  14. export type Exit = import('../types.js').Exit;
  15. export type Info = import('../types.js').Info;
  16. export type State = import('../types.js').State;
  17. /**
  18. * @param {Link} node
  19. * @param {Parents | undefined} _
  20. * @param {State} state
  21. * @returns {string}
  22. */
  23. declare function linkPeek(node: Link, _: Parents | undefined, state: State): string;
  24. export {};