/**
* Optional adapter layer for `@react-native-material/core` (rnm-core) consumers.
*
* This module lets teams already using rnm-core pass mui-native `Theme` tokens
* into rnm-core's styling system without a full migration. The adapter is
* deliberately thin — it maps mui-native's MD3 color-scheme to the flat
* color-palette shape that rnm-core expects, and re-exports mui-native's
* typography/spacing values unchanged.
*
* **Usage:**
* ```tsx
* import { buildRnmCoreTheme } from 'mui-native/adapters';
* import { Provider } from '@react-native-material/core';
* import { ThemeProvider, createTheme } from 'mui-native';
*
* const rnMaterialTheme = createTheme();
* const rnmTheme = buildRnmCoreTheme(rnMaterialTheme);
*
* export default function App() {
* return (
*
*
*
*
*
* );
* }
* ```
*/
import type { Theme } from '../theme/types';
/** Flat palette shape accepted by `@react-native-material/core` Provider. */
export interface RnmCorePalette {
primary: string;
onPrimary: string;
primaryContainer: string;
onPrimaryContainer: string;
secondary: string;
onSecondary: string;
secondaryContainer: string;
onSecondaryContainer: string;
error: string;
onError: string;
errorContainer: string;
onErrorContainer: string;
background: string;
onBackground: string;
surface: string;
onSurface: string;
outline: string;
}
/** The theme shape passed to rnm-core's ``. */
export interface RnmCoreTheme {
palette: RnmCorePalette;
typography: Theme['typography'];
}
/**
* Build an rnm-core-compatible theme object from a mui-native `Theme`.
* Only the color roles that rnm-core's Provider consumes are mapped; all other
* MD3 roles remain available directly through `useTheme()` in mui-native.
*/
export declare function buildRnmCoreTheme(theme: Theme): RnmCoreTheme;
//# sourceMappingURL=rnm-core-adapter.d.ts.map