UNPKG

@keenmate/svelte-docs

Version:

A professional component library for building beautiful documentation and showcase sites with SvelteKit

40 lines (39 loc) 1.73 kB
import type { DocsConfig, PartialDocsConfig } from '../types/config.js'; declare class ConfigStore { private _config; private _errors; private _initialized; constructor(); get config(): DocsConfig | null; get errors(): string[]; get initialized(): boolean; get site(): import("../index.js").SiteConfig | undefined; get company(): import("../index.js").CompanyConfig | undefined; get navigation(): import("../index.js").NavigationConfig | undefined; get theme(): import("../index.js").ThemeConfig | undefined; get features(): import("../index.js").FeaturesConfig | undefined; initialize(userConfig: PartialDocsConfig): void; initializeFromMerged(mergedConfig: DocsConfig): void; update(partialConfig: Partial<DocsConfig>): void; private applyTheme; getSocialLinks(): { platform: string; url: string; icon: string; label: string; }[]; getNavItemByHref(href: string): any; getBreadcrumbs(currentPath: string): { label: string; href: string; }[]; } export declare const configStore: ConfigStore; export declare function initializeConfig(userConfig: PartialDocsConfig): void; export declare function getConfig(): DocsConfig | null; export declare function getSiteConfig(): import("../index.js").SiteConfig | undefined; export declare function getCompanyConfig(): import("../index.js").CompanyConfig | undefined; export declare function getNavigationConfig(): import("../index.js").NavigationConfig | undefined; export declare function getThemeConfig(): import("../index.js").ThemeConfig | undefined; export declare function getFeaturesConfig(): import("../index.js").FeaturesConfig | undefined; export {};