// Type definitions for moonstone/MoonstoneDecorator import { FloatingLayerDecoratorProps as ui_FloatingLayer_FloatingLayerDecoratorProps } from "@enact/ui/FloatingLayer"; import { ResolutionDecoratorProps as ui_resolution_ResolutionDecoratorProps } from "@enact/ui/resolution"; import { SpotlightRootDecoratorProps as spotlight_SpotlightRootDecorator_SpotlightRootDecoratorProps } from "@enact/spotlight/SpotlightRootDecorator"; import { SkinnableProps as moonstone_Skinnable_SkinnableProps } from "@enact/moonstone/Skinnable"; type Omit = Pick>; type Merge = Omit> & N; export interface AccessibilityDecoratorProps { /** * Enables additional features to help users visually differentiate components. * * The UI library will be responsible for using this information to adjust the components' contrast to this preset. */ highContrast?: boolean; /** * Sets the goal size of the text. * * The UI library will be responsible for using this information to adjust the components' text sizes to this preset. Current presets are `'normal'` (default), and `'large'` . */ textSize?: "normal" | "large"; } export function AccessibilityDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export interface MoonstoneDecoratorConfig extends Object { /** * Applies AccessibilityDecorator. * * If not applied, app will not support accessibility options. */ accessible?: boolean; /** * Disables use of full screen. */ disableFullscreen?: boolean; /** * Enables a floating layer for popup components. * * If not applied, app will be responsible for applying the decorator. */ float?: boolean; /** * Options for I18nDecorator. * * May be `false` to prevent applying the decorator. If not applied, app will be responsible for applying the decorator. */ i18n?: object | false; /** * Disables setting spotlight focus on first render. */ noAutoFocus?: boolean; /** * Enables overlay mode (no background color will be applied). */ overlay?: boolean; /** * Override the resolution independence settings. */ ri?: object; /** * Specifies the id of the React DOM tree root node */ rootId?: string; /** * Applies skinning support. */ skin?: boolean; /** * Applies spotlight decorator. * * If not applied, app will be responsible for applying the decorator. */ spotlight?: boolean; } export interface MoonstoneDecoratorProps extends Merge< Merge< Merge< Merge< ui_FloatingLayer_FloatingLayerDecoratorProps, ui_resolution_ResolutionDecoratorProps >, spotlight_SpotlightRootDecorator_SpotlightRootDecoratorProps >, moonstone_Skinnable_SkinnableProps >, AccessibilityDecoratorProps > {} export function MoonstoneDecorator

( config: MoonstoneDecoratorConfig, Component: React.ComponentType

| string, ): React.ComponentType

; export function MoonstoneDecorator

( Component: React.ComponentType

| string, ): React.ComponentType

; export default MoonstoneDecorator;