import type { ImageStyle, TextStyle, ViewStyle } from 'react-native'; import type { ThemeAppearanceState } from '../types/appearance.types'; import type { ThemeState } from './themeState.types'; export type ThemeStyleSheet = Record; /** * Theme state should be consistent on object identity until a theme change or system appearance change occurs. Each new * theme state must own a new themeStyles registry so cached style sheets cannot leak across themes. */ /** * Access the current theme state. Every consumer of the same source revision * and resolved appearance shares one state identity. * * @returns The current theme state, including flex tokens, high contrast mode status, and shared theme style sheets. */ export declare function useThemeState(): ThemeState; /** * Access both the requested appearance and its concrete resolution. */ export declare function useThemeAppearance(): Readonly; /** * Creates a themed style sheet factory for a component. This provides a function which will return a style sheet from * the theme state and ensure it is only created once per instance of the ThemeState object. * * @param symbolName A unique name for the component, used to create a symbol key. * @param factory A function that creates the theme style sheet for the component. * @returns A function that retrieves the cached theme style sheet for the component, creating it if necessary. */ export declare function themedStyleSheetFactory(symbolName: string, factory: (themeState: ThemeState) => TStyles): (themeState: ThemeState) => TStyles; //# sourceMappingURL=useThemeState.d.ts.map