UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

18 lines (17 loc) 604 B
import { LinkStrategy } from '../vo/path'; export declare class PageGraph { private allSlugs; private outgoingLinks; constructor(slugs: string[]); registerOutgoingLinks(srcSlug: string, links: string[]): void; getBacklinks(targetSlug: string): string[]; getAllSlugs(): string[]; hasSlug(slug: string): boolean; resolveLink(srcSlug: string, targetLink: string, strategy: LinkStrategy): string; getOutgoingLinks(srcSlug: string): string[]; getAllOutgoingLinks(): Map<string, string[]>; getStats(): { totalPages: number; slugs: string[]; }; }