import { SvelteComponent } from 'svelte'; import { type Readable } from 'svelte/store'; export declare const NAVIGATION_CONTEXT_KEY: unique symbol; export type NavigationConfig = { canUpdateHash: (hash: string) => boolean; cleanHash: (hash: string) => string; }; export type NavigationContext = Readable; export declare const DEFAULT_NAVIGATION_CONFIG: NavigationConfig; export declare function getNavigationContext(): NavigationContext; export declare function setNavigationContext(context: NavigationContext): void; export declare const NAVBAR_CONTEXT_KEY: unique symbol; export type NavLinkItem = { title: string; slug: string; match?: RegExp | null; }; export type NavbarConfig = { links: NavLinkItem[]; }; export type NavbarContext = Readable; export declare function getNavbarContext(): NavbarContext; export declare function createNavbarContext(config: Readable): NavbarContext; export declare function setNavbarContext(context: NavbarContext): void; export type SidebarLink = { title: string; slug: string; match?: 'deep' | RegExp; icon?: { before?: typeof SvelteComponent; after?: typeof SvelteComponent; }; }; export type SidebarLinks = { [category: string]: SidebarLink[]; }; export type SidebarSimpleLinks = { [category: string]: string[]; }; export type SidebarConfig = { baseUrl?: string; links: SidebarLinks | SidebarSimpleLinks; }; export type ResolvedSidebarConfig = { baseUrl?: string; links: SidebarLinks; }; export declare function normalizeSidebarConfig(config?: SidebarConfig | null): ResolvedSidebarConfig; export declare function isActiveSidebarLink({ match, slug }: SidebarLink, currentPath: string): boolean; export declare const SIDEBAR_CONTEXT_KEY: unique symbol; export type SidebarContext = { config: Readable; allLinks: Readable; activeLinkIndex: Readable; activeLink: Readable; previousLink: Readable; nextLink: Readable; activeCategory: Readable; }; export declare function createSidebarContext(config?: SidebarConfig | null | Readable): SidebarContext; export declare function setSidebarContext(context: SidebarContext): void; export declare function getSidebarContext(): SidebarContext; export type I18NTranslations = { nav: { next: string; previous: string; mainMenu: string; openSidebar: string; options: string; links: string; }; toc: { title: string; }; colorScheme: { title: string; light: string; dark: string; system: string; theme: string; }; dialog: { close: string; }; admonition: { note: string; info: string; tip: string; warning: string; danger: string; experimental: string; }; code: { copy: string; copied: string; }; }; export declare const DEFAULT_I18N_TRANSLATIONS: I18NTranslations; export type I18NContext = Readable; export declare const I18N_CONTEXT_KEY: unique symbol; export declare function getI18nContext(): I18NContext; export declare function setI18nContext(context: I18NContext): void;