/** * Shared parsing and resolution logic for [[wikilinks]] and relative markdown * links. Single source of truth for wiki-tools, graph-index, and validation. */ export declare const WIKI_LINK_RE: RegExp; export declare const MARKDOWN_LINK_RE: RegExp; export declare function isExternalLinkTarget(target: string): boolean; export declare function splitAnchor(target: string): { path: string; anchor: string; }; /** Extract [[wikilink]] names, with any `|alias` stripped. */ export declare function wikiLinkTargets(markdown: string): string[]; /** Extract local markdown link targets (anchors stripped, external URLs skipped). */ export declare function markdownLinkTargets(markdown: string): string[]; /** Filenames that may satisfy a [[wikilink]] name (spaces map to `_` or `-`). */ export declare function wikiLinkFileCandidates(name: string): string[]; /** Name variants under which a page file can be referenced as [[name]]. */ export declare function wikiLinkNameVariants(fileBasename: string): string[]; /** * All wiki-relative files matching a [[wikilink]] name. Canonical frontmatter * titles take precedence; filename variants remain a compatibility fallback. */ export declare function resolveWikiLinkName(name: string, files: Iterable, titlesByPath?: ReadonlyMap): string[]; //# sourceMappingURL=link-resolution.d.ts.map