import React, { type PropsWithChildren } from 'react'; import { type Theme } from '../theme/theme'; /** * Recursively marks every property of `T` as optional. * * The `extends object` guard is required, not cosmetic: `Theme` carries a * `[component: string]: any` index signature, which the mapped type inherits. * Without the guard that index signature becomes `DeepPartial`, an * all-object type that no primitive leaf can satisfy, and every theme override * fails to typecheck. Guarding short-circuits `any` back to `any`. */ export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; }; export type StreamThemeInputValue = { mergedStyle?: Theme; style?: DeepPartial; }; /** * @deprecated Use StreamThemeInputValue instead. */ export type ThemeProviderInputValue = StreamThemeInputValue; export type MergedThemesParams = { style?: DeepPartial; theme?: Theme; }; export type ThemeContextValue = { theme: Theme; }; export declare const mergeThemes: (params: MergedThemesParams) => Theme; export declare const ThemeContext: React.Context; export declare const StreamTheme: React.FC>>; /** * @deprecated Use StreamTheme instead of ThemeProvider. */ export declare const ThemeProvider: React.FC>>; export declare const useTheme: () => { theme: Theme; }; //# sourceMappingURL=ThemeContext.d.ts.map