import { ReactNode } from 'react';
import { ColorSchemeProviderProps, CssFn } from '@nex-ui/system';
import { Theme } from '../../types/theme.js';

type PrimaryThemeColor = Exclude<Theme['primaryThemeColor'], undefined>;
interface NexUIProviderProps {
    theme?: Theme;
    colorScheme?: Omit<ColorSchemeProviderProps, 'children'>;
    children?: ReactNode;
    prefix?: string;
}
type NexContextValue = {
    css: CssFn;
    prefix: string;
    primaryThemeColor: PrimaryThemeColor;
    components?: Theme['components'];
};

export type { NexContextValue, NexUIProviderProps };
