/** * Reference fixup — remap document links in copied pages. * * After copying a wiki subtree, internal links still point to the source. * This module rewrites mention_doc elements and text_run links to point * to the corresponding target pages. */ import type { LarkCli } from "../cli.js"; export interface RefMaps { /** source_node_token → target_node_token (for /wiki/ URLs) */ nodeMap: Map; /** source_obj_token → target_obj_token (for /docx/ URLs and mention_doc.token) */ objMap: Map; /** target_node_token → target_obj_token (for iterating target pages) */ docMap: Map; } /** * Post-copy pass: update document references in all copied pages. * Returns number of blocks updated. */ export declare function fixupReferences(cli: LarkCli, refs: RefMaps, opts?: { verbose?: boolean; }): number; //# sourceMappingURL=fix-refs.d.ts.map