/**
 * wiki-links.ts — Two-pass wiki link resolution with automatic backlink injection.
 *
 * Pass 1: Extract all [[slug]] forward links from each page.
 * Pass 2: Invert to backlinks, append ## Backlinks section to each page that has inbound links.
 */
export interface LinkResolutionResult {
    /** slug → content with backlinks section appended (where applicable) */
    resolvedPages: Map<string, string>;
    /** [[slug]] references whose target is not in knownSlugs */
    brokenLinks: Array<{
        source: string;
        target: string;
    }>;
}
/**
 * Two-pass wiki link resolution with automatic backlink injection.
 *
 * @param pages     Map of slug → markdown content
 * @param knownSlugs Set of valid page slugs (for broken link detection)
 */
export declare function resolveWikiLinks(pages: Map<string, string>, knownSlugs: Set<string>): LinkResolutionResult;
//# sourceMappingURL=wiki-links.d.ts.map