UNPKG

@mdfriday/foundry

Version:

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

43 lines (42 loc) 1.05 kB
export declare class Menu { private readonly _title; private readonly _url; private readonly _children; private readonly _weight; private readonly _identifier; constructor(options: { title: string; url: string; children?: Menu[]; weight?: number; identifier?: string; }); title(): string; get Title(): string; url(): string; get URL(): string; children(): Menu[]; get Children(): Menu[]; weight(): number; identifier(): string; hasChildren(): boolean; get HasChildren(): boolean; addChild(child: Menu): Menu; toJSON(): any; withChildren(children: Menu[]): Menu; } export declare class Menus { private readonly _nav; private readonly _footer; constructor(options?: { nav?: Menu[]; footer?: Menu[]; }); nav(): Menu[]; get Nav(): Menu[]; footer(): Menu[]; get Footer(): Menu[]; private sortMenus; toJSON(): Record<string, any[]>; } export declare function newEmptyMenus(): Menus;