import { ThemeScope } from '@plitzi/sdk-shared/theme'; import { Theme } from '@plitzi/sdk-shared/types'; import { ReactNode } from 'react'; export type SpaceThemeProviderProps = { scope: ThemeScope; /** A theme the host already settled — the cookie a server read — which wins over everything here. */ theme?: Theme; children?: ReactNode; }; /** * The theme provider, starting where the SPACE says to start. * * `style.theme.default` is what a space declares a first visit looks like; the provider was mounted with a hard-coded * `system`, so the setting was stored, edited in the builder and written by authoring, and never rendered. It is read * from the store because a space fetched after mount arrives there late — the provider re-applies its default when * it does, and a visitor's own choice (the cookie) still wins. */ declare const SpaceThemeProvider: ({ scope, theme, children }: SpaceThemeProviderProps) => import('react').JSX.Element; export default SpaceThemeProvider;