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