import React from 'react'; import { type SourcesConfigInput } from './Config/normalize-sources-config.ts'; import type { ConfigurationOptions, ThemeValue } from './Config/types.ts'; interface ThemeMap { [name: string]: ThemeValue; } interface BaseProps extends Omit, 'git' | 'theme'> { /** The nonce to use for the provider scripts. */ nonce?: string; /** Configuration options for git linking. Accepts a string shorthand or an object. */ git?: ConfigurationOptions['git'] | string; /** Custom asset sources (e.g. { icons: { type: 'figma', fileId } }). */ sources?: SourcesConfigInput; /** Control whether to include the script for the `Command` component in the document head. */ includeCommandScript?: boolean; /** Control whether to include the script for the `TableOfContents` component in the document head. */ includeTableOfContentsScript?: boolean; /** The `html` element tree to render. */ children: React.ReactNode; } export type RootProviderProps = BaseProps & ([Theme] extends [ThemeMap] ? { /** Object map of theme names to theme values e.g. `{ light: 'vitesse-light', dark: 'vitesse-dark' }`. */ theme: ThemeMap; /** Control whether to include the theme script that manages the local storage theme state in the head of the document. */ includeThemeScript?: boolean; } : { /** Single theme name or [name, override]. If omitted, defaults apply. */ theme?: ThemeValue; /** The `includeThemeScript` prop is only considered when the `theme` prop is an object map e.g. `theme={{ light: 'vitesse-light', dark: 'vitesse-dark' }}`. */ includeThemeScript?: never; }); export declare function RootProvider(props: RootProviderProps): React.JSX.Element; export declare function RootProvider(props: RootProviderProps): React.JSX.Element; export {};