import type { SharedTokens, NewComponentTypes, Theme } from '@instructure/ui-themes'; type SecondParameter any> = Parameters[1] extends undefined ? never : Parameters[1]; type GenerateStyleParams = ((componentTheme: any, params: any, sharedTokens: SharedTokens) => any) | ((componentTheme: any, params: any) => any) | ((componentTheme: any) => any); /** * Type for a theme override */ type ThemeOverrideValue = Partial | ((componentTheme: Theme, currentTheme: NewComponentTypes[keyof NewComponentTypes]) => Partial); /** * new useStyle syntax, use this with v12 themes */ declare const useStyle:

(useStyleParams: { generateStyle: P; params?: SecondParameter

; componentId: keyof NewComponentTypes | string; themeOverride: ThemeOverrideValue | undefined; displayName?: string; useTokensFrom?: keyof NewComponentTypes; }) => ReturnType

; export default useStyle; export { useStyle }; export type { ThemeOverrideValue }; //# sourceMappingURL=useStyle.d.ts.map