///
import { Invalidator } from 'svelte/store';
import type { LoadEvent } from '@sveltejs/kit';
import { Readable } from 'svelte/store';
import { Subscriber } from 'svelte/store';
import { SvelteComponent } from 'svelte';
import { SvelteComponentTyped } from 'svelte';
import { Unsubscriber } from 'svelte/store';
import { Updater } from 'svelte/store';
import { Writable } from 'svelte/store';
/* Excluded from this release type: __kitDocs */
declare const __propDef: {
props: {
[x: string]: any;
primary?: boolean | undefined;
type?: "flat" | "raised" | undefined;
arrow?: "left" | "right" | null | undefined;
as?: "a" | "button" | undefined;
class?: string | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
declare const __propDef_10: {
props: {
navigation?: Partial | null | undefined;
navbar: NavbarConfig | false;
sidebar?: SidebarConfig | null | undefined;
i18n?: Partial | null | undefined;
isSidebarOpen?: boolean | undefined;
isNavPopoverOpen?: boolean | undefined;
search?: boolean | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
search: {};
'navbar-left': {};
'navbar-right': {};
'navbar-right-alt': {};
'navbar-bottom': {};
'navbar-popover-top': {};
'navbar-popover-middle': {};
'navbar-popover-options': {};
'navbar-popover-bottom': {};
'sidebar-top': {};
'sidebar-bottom': {};
'main-top': {};
default: {};
'main-bottom': {};
};
};
declare const __propDef_11: {
props: {
search?: boolean | undefined;
};
events: {
'open-popover': CustomEvent;
'close-popover': CustomEvent;
} & {
[evt: string]: CustomEvent;
};
slots: {
left: {};
search: {};
'popover-top': {};
'popover-middle': {};
'popover-options': {};
'popover-bottom': {};
right: {};
'right-alt': {};
bottom: {};
};
};
declare const __propDef_12: {
props: {
title: string;
slug: string;
match?: RegExp | null | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_13: {
props: {
class?: string | undefined;
style?: string | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_14: {
props: {
open?: boolean | undefined;
search?: boolean | undefined;
class?: string | ((state: {
open: boolean;
}) => string) | undefined;
style?: string | undefined;
};
events: {
close: CustomEvent;
} & {
[evt: string]: CustomEvent;
};
slots: {
search: {};
top: {};
bottom: {};
};
};
declare const __propDef_15: {
props: {
lang?: string | null | undefined;
ext?: string | null | undefined;
code?: string | null | undefined;
rawCode?: string | null | undefined;
title?: string | null | undefined;
linesCount?: number | undefined;
showLineNumbers?: boolean | undefined;
highlightLines?: [number, number][] | undefined;
copyHighlightOnly?: boolean | undefined;
copySteps?: boolean | undefined;
showCopyCode?: boolean | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_16: {
props: {
class?: string | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
head: {};
body: {};
};
};
declare const __propDef_17: {
props: {
code: string;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_18: {
props: {
[x: string]: any;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
declare const __propDef_19: {
props: {
type: 'note' | 'info' | 'tip' | 'warning' | 'danger' | 'experimental';
title?: string | null | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
declare const __propDef_2: {
props: Record;
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_20: {
props: {
title?: string | null | undefined;
description?: string | null | undefined;
orientation?: "vertical" | "horizontal" | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
title: {};
description: {};
default: {};
};
};
declare const __propDef_21: {
props: Record;
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
declare const __propDef_22: {
props: {
links?: TabbedLink[] | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_23: {
props: {
headers?: string | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_3: {
props: {
open?: boolean | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
button: {};
default: {};
};
};
declare const __propDef_4: {
props: {
selected?: boolean | undefined;
};
events: {
select: CustomEvent;
} & {
[evt: string]: CustomEvent;
};
slots: {
icon: {};
default: {};
};
};
declare const __propDef_5: {
props: {
open?: boolean | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {};
};
declare const __propDef_6: {
props: {
open?: boolean | undefined;
overlay?: boolean | undefined;
};
events: {
open: CustomEvent;
close: CustomEvent;
} & {
[evt: string]: CustomEvent;
};
slots: {
button: {};
default: {};
};
};
declare const __propDef_7: {
props: {
title: string;
options?: string[] | undefined;
value?: string | undefined;
disabled?: boolean | undefined;
rounded?: boolean | undefined;
raised?: boolean | undefined;
arrowWidth?: number | undefined;
arrowHeight?: number | undefined;
};
events: {
change: Event;
} & {
[evt: string]: CustomEvent;
};
slots: {
'before-title': {};
default: {};
};
};
declare const __propDef_8: {
props: {
type: 'discord' | 'gitHub' | 'twitter';
title?: string | undefined;
href: string;
iconWidth?: number | undefined;
iconHeight?: number | undefined;
class?: string | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
declare const __propDef_9: {
props: {
meta?: MarkdownMeta | null | undefined;
};
events: {
[evt: string]: CustomEvent;
};
slots: {
default: {};
};
};
export declare class Admonition extends SvelteComponentTyped {
}
declare type AdmonitionEvents = typeof __propDef_19.events;
declare type AdmonitionProps = typeof __propDef_19.props;
declare type AdmonitionSlots = typeof __propDef_19.slots;
export declare class Button extends SvelteComponentTyped {
}
declare type ButtonEvents = typeof __propDef.events;
declare type ButtonProps = typeof __propDef.props;
declare type ButtonSlots = typeof __propDef.slots;
/** @typedef {typeof __propDef.props} ChipProps */
/** @typedef {typeof __propDef.events} ChipEvents */
/** @typedef {typeof __propDef.slots} ChipSlots */
export declare class Chip extends SvelteComponentTyped<{
class?: string | undefined;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export declare type CloseDialogCallback = (focusBtn?: boolean) => void;
export declare class CodeFence extends SvelteComponentTyped {
}
declare type CodeFenceEvents = typeof __propDef_15.events;
declare type CodeFenceProps = typeof __propDef_15.props;
declare type CodeFenceSlots = typeof __propDef_15.slots;
export declare class CodeInline extends SvelteComponentTyped {
}
declare type CodeInlineEvents = typeof __propDef_17.events;
declare type CodeInlineProps = typeof __propDef_17.props;
declare type CodeInlineSlots = typeof __propDef_17.slots;
export declare type ColorScheme = 'light' | 'dark' | 'system';
export declare const colorScheme: {
set(scheme: ColorScheme): void;
update(this: void, updater: Updater): void;
subscribe(this: void, run: Subscriber, invalidate?: Invalidator | undefined): Unsubscriber;
};
export declare const colorSchemes: ColorScheme[];
export declare class ColorSchemeToggle extends SvelteComponentTyped {
}
declare type ColorSchemeToggleEvents = typeof __propDef_2.events;
declare type ColorSchemeToggleProps = typeof __propDef_2.props;
declare type ColorSchemeToggleSlots = typeof __propDef_2.slots;
export declare function createKitDocsLoader(options?: KitDocsLoaderOptions): (event: LoadEvent) => Promise;
export declare function createNavbarContext(config: Readable): NavbarContext;
export declare function createSidebarContext(config?: SidebarConfig | null | Readable): SidebarContext;
export declare const DEFAULT_I18N_TRANSLATIONS: I18NTranslations;
export declare const DEFAULT_NAVIGATION_CONFIG: NavigationConfig;
export declare function dialogManager(dialogBtn: HTMLElement, options?: DialogManagerOptions): any;
export declare type DialogManagerOptions = {
onOpen?: () => void;
onClose?: () => void;
focusSelectors?: string[];
menuSelectors?: string[];
openOnPointerEnter?: boolean;
closeOnPointerLeave?: boolean;
closeOnSelectSelectors?: string[];
close?: (callback: CloseDialogCallback) => void;
};
export declare const FOCUSABLE_DIALOG_ELEMENTS: string[];
/** @typedef {typeof __propDef.props} FooterProps */
/** @typedef {typeof __propDef.events} FooterEvents */
/** @typedef {typeof __propDef.slots} FooterSlots */
export declare class Footer extends SvelteComponentTyped<{
[x: string]: never;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export declare const frontmatter: Readable;
export declare function getI18nContext(): I18NContext;
export declare function getNavbarContext(): NavbarContext;
export declare function getNavigationContext(): NavigationContext;
export declare function getRootDirFromUrl(url: URL): string;
export declare function getSidebarContext(): SidebarContext;
export declare function hasMarkdownHeaders(meta?: MarkdownMeta): boolean;
export declare function hideDocumentScrollbar(hidden: boolean): void;
export declare const I18N_CONTEXT_KEY: unique symbol;
export declare type I18NContext = Readable;
export declare 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 function isActiveSidebarLink({ match, slug }: SidebarLink, currentPath: string): boolean;
export declare const isDarkColorScheme: Readable;
export declare const isExtraLargeScreen: Readable;
export declare const isLargeScreen: Readable;
export declare function kebabToTitleCase(str?: string): string;
export declare class KitDocs extends SvelteComponentTyped {
}
export declare const kitDocs: Readable;
declare type KitDocsEvents = typeof __propDef_9.events;
export declare class KitDocsLayout extends SvelteComponentTyped {
}
declare type KitDocsLayoutEvents = typeof __propDef_10.events;
declare type KitDocsLayoutProps = typeof __propDef_10.props;
declare type KitDocsLayoutSlots = typeof __propDef_10.slots;
export declare type KitDocsLoaderOptions = {
/**
* A path relative to the `routes/` directory. Markdown files will be resolved from the
* matched directory and used to build a sidebar config object. You can also provide a
* multi-path configuration that will resolve the directory to the key that matches the current
* path.
*
* @example `/docs`
* @example
* ```js
* {
* '/': null,
* '/docs': '/docs',
* '/faq': '/faq',
* }
* ```
*/
sidebar?: SidebarLoaderPath;
};
declare type KitDocsProps = typeof __propDef_9.props;
declare type KitDocsSlots = typeof __propDef_9.slots;
export declare type KitDocsStuff = {
meta: MarkdownMeta | null;
};
export declare class Link extends SvelteComponentTyped {
}
declare type LinkEvents = typeof __propDef_18.events;
declare type LinkProps = typeof __propDef_18.props;
declare type LinkSlots = typeof __propDef_18.slots;
export declare type LoaderFetchFn = (info: RequestInfo, init?: RequestInit) => Promise;
/**
* @param slug - A slug that will be resolved to a markdown file from which a meta object will be
* built (e.g., `docs/introduction`).
* @param input - SvelteKit loader input.
*/
export declare function loadKitDocsMeta(event: LoadEvent): Promise;
export declare type LoadKitDocsResult = {
meta: MarkdownMeta;
sidebar?: ResolvedSidebarConfig;
};
/**
* @param path - A path relative to the `routes/` directory. Markdown files will be resolved from
* the matched directory and used to build a sidebar config object (e.g., `/docs`). You can also
* provide a multi-path configuration that will resolve the directory to the key that matches the
* current path (e..g, `{ '/': null, '/docs': '/docs' }`).
* @param input - SvelteKit loader input.
*/
export declare function loadKitDocsSidebar(path: SidebarLoaderPath, event: LoadEvent): Promise;
export declare function lowercaseFirstLetter(str: string): string;
export declare type MarkdownFrontmatter = Record;
export declare type MarkdownHeader = {
level: number;
title: string;
slug: string;
children?: MarkdownHeader[];
};
export declare type MarkdownMeta = {
title: string;
description: string;
excerpt: string;
headers: MarkdownHeader[];
frontmatter: MarkdownFrontmatter;
lastUpdated: number;
slug: string;
};
export declare function matchSidebarPath(url: URL, path: SidebarLoaderPath): string | null;
export declare class Menu extends SvelteComponentTyped {
}
declare type MenuEvents = typeof __propDef_3.events;
export declare class MenuItem extends SvelteComponentTyped {
}
declare type MenuItemEvents = typeof __propDef_4.events;
declare type MenuItemProps = typeof __propDef_4.props;
declare type MenuItemSlots = typeof __propDef_4.slots;
declare type MenuProps = typeof __propDef_3.props;
declare type MenuSlots = typeof __propDef_3.slots;
export declare class Navbar extends SvelteComponentTyped {
}
export declare const NAVBAR_CONTEXT_KEY: unique symbol;
export declare type NavbarConfig = {
links: NavLinkItem[];
};
export declare type NavbarContext = Readable;
declare type NavbarEvents = typeof __propDef_11.events;
declare type NavbarProps = typeof __propDef_11.props;
declare type NavbarSlots = typeof __propDef_11.slots;
export declare const NAVIGATION_CONTEXT_KEY: unique symbol;
export declare type NavigationConfig = {
canUpdateHash: (hash: string) => boolean;
cleanHash: (hash: string) => string;
};
export declare type NavigationContext = Readable;
export declare class NavLink extends SvelteComponentTyped {
}
declare type NavLinkEvents = typeof __propDef_12.events;
export declare type NavLinkItem = {
title: string;
slug: string;
match?: RegExp | null;
};
declare type NavLinkProps = typeof __propDef_12.props;
declare type NavLinkSlots = typeof __propDef_12.slots;
/** @typedef {typeof __propDef.props} NoProps */
/** @typedef {typeof __propDef.events} NoEvents */
/** @typedef {typeof __propDef.slots} NoSlots */
export declare class No extends SvelteComponentTyped<{
[x: string]: never;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export declare function normalizePath(path: string): string;
export declare function normalizeSidebarConfig(config?: SidebarConfig | null): ResolvedSidebarConfig;
export declare class OnThisPage extends SvelteComponentTyped {
}
declare type OnThisPageEvents = typeof __propDef_13.events;
declare type OnThisPageProps = typeof __propDef_13.props;
declare type OnThisPageSlots = typeof __propDef_13.slots;
export declare class Overlay extends SvelteComponentTyped {
}
declare type OverlayEvents = typeof __propDef_5.events;
declare type OverlayProps = typeof __propDef_5.props;
declare type OverlaySlots = typeof __propDef_5.slots;
export declare class Popover extends SvelteComponentTyped {
}
declare type PopoverEvents = typeof __propDef_6.events;
declare type PopoverProps = typeof __propDef_6.props;
declare type PopoverSlots = typeof __propDef_6.slots;
export declare function prefetchLink(node: HTMLAnchorElement): {
update: () => void;
};
export declare type ResolvedSidebarConfig = {
baseUrl?: string;
links: SidebarLinks;
};
export declare function scrollIntoCenter(scroll: Element | Window, element: Element, options?: {
offset?: number;
behaviour?: 'auto' | 'smooth';
}): void;
export declare class Select extends SvelteComponentTyped {
}
declare type SelectEvents = typeof __propDef_7.events;
declare type SelectProps = typeof __propDef_7.props;
declare type SelectSlots = typeof __propDef_7.slots;
export declare function setI18nContext(context: I18NContext): void;
export declare function setNavbarContext(context: NavbarContext): void;
export declare function setNavigationContext(context: NavigationContext): void;
export declare function setSidebarContext(context: SidebarContext): void;
export declare class Sidebar extends SvelteComponentTyped {
}
export declare const SIDEBAR_CONTEXT_KEY: unique symbol;
export declare type SidebarConfig = {
baseUrl?: string;
links: SidebarLinks | SidebarSimpleLinks;
};
export declare type SidebarContext = {
config: Readable;
allLinks: Readable;
activeLinkIndex: Readable;
activeLink: Readable;
previousLink: Readable;
nextLink: Readable;
activeCategory: Readable;
};
declare type SidebarEvents = typeof __propDef_14.events;
export declare type SidebarLink = {
title: string;
slug: string;
match?: 'deep' | RegExp;
icon?: {
before?: typeof SvelteComponent;
after?: typeof SvelteComponent;
};
};
export declare type SidebarLinks = {
[category: string]: SidebarLink[];
};
export declare type SidebarLoaderPath = string | {
[path: string]: string | null;
};
declare type SidebarProps = typeof __propDef_14.props;
export declare type SidebarSimpleLinks = {
[category: string]: string[];
};
declare type SidebarSlots = typeof __propDef_14.slots;
export declare function slugToRequestParam(slug: string): string;
export declare class SocialLink extends SvelteComponentTyped {
}
declare type SocialLinkEvents = typeof __propDef_8.events;
declare type SocialLinkProps = typeof __propDef_8.props;
declare type SocialLinkSlots = typeof __propDef_8.slots;
export declare class Step extends SvelteComponentTyped {
}
declare type StepEvents = typeof __propDef_20.events;
declare type StepProps = typeof __propDef_20.props;
export declare class Steps extends SvelteComponentTyped {
}
declare type StepsEvents = typeof __propDef_21.events;
declare type StepSlots = typeof __propDef_20.slots;
declare type StepsProps = typeof __propDef_21.props;
declare type StepsSlots = typeof __propDef_21.slots;
declare type TabbedLink = {
title: string;
href: string;
};
export declare class TabbedLinks extends SvelteComponentTyped {
}
declare type TabbedLinksEvents = typeof __propDef_22.events;
declare type TabbedLinksProps = typeof __propDef_22.props;
declare type TabbedLinksSlots = typeof __propDef_22.slots;
export declare class Table extends SvelteComponentTyped {
}
declare type TableEvents = typeof __propDef_16.events;
export declare class TableOfContents extends SvelteComponentTyped {
}
declare type TableOfContentsEvents = typeof __propDef_23.events;
declare type TableOfContentsProps = typeof __propDef_23.props;
declare type TableOfContentsSlots = typeof __propDef_23.slots;
declare type TableProps = typeof __propDef_16.props;
declare type TableSlots = typeof __propDef_16.slots;
/** @typedef {typeof __propDef.props} TableWrapperProps */
/** @typedef {typeof __propDef.events} TableWrapperEvents */
/** @typedef {typeof __propDef.slots} TableWrapperSlots */
export declare class TableWrapper extends SvelteComponentTyped<{
class?: string | undefined;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export declare function titleToKebabCase(str?: string): string;
export declare function uppercaseFirstLetter(str: string): string;
export declare function useActiveHeaderLinks(navContext: NavigationContext): Writable;
/** @typedef {typeof __propDef.props} YesProps */
/** @typedef {typeof __propDef.events} YesEvents */
/** @typedef {typeof __propDef.slots} YesSlots */
export declare class Yes extends SvelteComponentTyped<{
[x: string]: never;
}, {
[evt: string]: CustomEvent;
}, {
default: {};
}> {
}
export { }