// types shared between server and client export interface LocaleConfig { lang: string; title?: string; description?: string; head?: HeadConfig[]; label?: string; selectText?: string; } export interface SiteData { base: string; lang: string; title: string; description: string; head: HeadConfig[]; themeConfig: ThemeConfig; locales: Record; } export type HeadConfig = | [string, Record] | [string, Record, string]; export interface PageData { relativePath: string; title: string; description: string; headers: Header[]; frontmatter: Record; lastUpdated: number; content?: string; html?: string; } export interface Header { level: number; title: string; slug: string; content: string; }