import { StyleSheet } from 'react-native'; /** * Theming for the Superagent native package. * * Styles are authored in the original dark hex palette. Each authored hex is * treated as a *semantic role key*: theme.ts maps it onto the matching Base44 * design-system semantic token (see ./tokens.ts) and resolves that token for * the active color scheme. Both the dark and light StyleSheets are therefore * rendered from DS values, so the native package tracks the web design system * in both modes. Unmapped hexes fall through unchanged, so partial coverage is * always safe. * * `createThemedStyles` builds both StyleSheets up front and returns a proxy * that resolves against the active scheme on every property read, so existing * `styles.foo` call sites keep working unchanged. The scheme lives in module * state synced from the provider in SuperagentHomeScreen during render. */ export type SuperagentColorScheme = 'light' | 'dark'; export declare function getSuperagentColorScheme(): SuperagentColorScheme; export declare function syncSuperagentColorScheme(scheme: SuperagentColorScheme): void; export declare const SuperagentThemeContext: import("react").Context<{ scheme: SuperagentColorScheme; setScheme: (scheme: SuperagentColorScheme) => void; }>; export declare function useSuperagentTheme(): { scheme: SuperagentColorScheme; setScheme: (scheme: SuperagentColorScheme) => void; }; /** DS foreground (text / icon) color for an authored hex, for the active scheme. */ export declare function themedColor(authored: string): string; /** DS surface (background) color for an authored hex, for the active scheme. */ export declare function themedSurface(authored: string): string; /** DS border color for an authored hex, for the active scheme. */ export declare function themedBorder(authored: string): string; /** * Drop-in replacement for StyleSheet.create: takes dark-authored styles and * returns a proxy resolving each style against the active color scheme, with * every color mapped onto the matching design-system semantic token. */ export declare function createThemedStyles>(base: T): T; //# sourceMappingURL=theme.d.ts.map