vuepress-theme-hope
Version:
A light vuepress theme with tons of features
37 lines • 1.44 kB
TypeScript
import type { SidebarGroupItem, SidebarItem, SidebarLinkItem } from "./typings.js";
import type { SidebarArrayOptions, SidebarItemOptions, SidebarObjectOptions, SidebarOptions } from "../../../../shared/index.js";
export interface SidebarArrayItem {
config: SidebarArrayOptions;
headerDepth: number;
prefix?: string;
}
/**
* Resolve sidebar item
*/
export declare const resolveSidebarItem: (item: SidebarItemOptions, pathPrefix: string) => SidebarLinkItem | SidebarGroupItem;
/**
* Resolve sidebar items if the config is an array
*/
export declare const resolveArraySidebarItems: ({ config, prefix, }: SidebarArrayItem) => SidebarItem[];
export interface ResolveMultiSidebarOptions {
config: SidebarObjectOptions;
routePath: string;
headerDepth: number;
}
/**
* Resolve sidebar items if the config is a key -> value (path-prefix -> array) object
*/
export declare const resolveMultiSidebarItems: ({ config, routePath, headerDepth, }: ResolveMultiSidebarOptions) => SidebarItem[];
export interface ResolveSidebarOptions {
config: SidebarOptions;
headerDepth: number;
routeLocale: string;
routePath: string;
}
/**
* Resolve sidebar items global computed
*
* It should only be resolved and provided once
*/
export declare const resolveSidebarItems: ({ config, headerDepth, routeLocale, routePath, }: ResolveSidebarOptions) => SidebarItem[];
//# sourceMappingURL=resolveSidebarItems.d.ts.map