import { AtomAsset } from 'dumi-assets-types'; import { ILocale, ILocalesConfig, INavItem, IPreviewerProps, IRouteMeta, ISidebarGroup } from 'dumi/dist/client/theme-api/types'; import { PICKED_PKG_FIELDS } from 'dumi/dist/constants'; import type { Location } from 'history'; import { ComponentType } from 'react'; import { SiteThemeConfig } from "../types"; export type NavData = (INavItem & { children?: INavItem[] | undefined; })[]; export interface ISiteData { components: Record; demos: Record; entryExports: Record; loading: boolean; locales: ILocalesConfig; pkg: Partial>; setLoading: (status: boolean) => void; themeConfig: SiteThemeConfig; } export interface SiteStore { locale: ILocale; location: Location; navData: NavData; routeMeta: IRouteMeta; sidebar?: ISidebarGroup[]; siteData: ISiteData; tabMeta?: NonNullable[0]['meta']; } export declare const initialState: () => { locale: any; location: { hash: string; key: string; pathname: string; search: string; state: string; }; navData: never[]; routeMeta: { frontmatter: {}; tabs: undefined; texts: never[]; toc: never[]; }; sidebar: never[]; siteData: { components: {}; demos: {}; entryExports: {}; loading: boolean; locales: never[]; pkg: {}; setLoading: undefined; themeConfig: {}; }; };