export interface RehypeBaseUrlOptions { /** Site base, e.g. "/chant" or "/chant/lexicons/aws". Trailing/leading slashes optional. */ base: string; /** Project-wide base used to detect already-correctly-prefixed cross-site links. */ projectBase?: string; } type HastNode = { type: string; tagName?: string; properties?: Record; children?: HastNode[]; }; export default function rehypeBaseUrl( opts: RehypeBaseUrlOptions, ): (tree: HastNode) => void;