import React, { type PropsWithChildren, type Ref } from 'react'; import type { DOMElement } from '../../ink/dom.js'; import type { ClickEvent } from '../../ink/events/click-event.js'; import type { FocusEvent } from '../../ink/events/focus-event.js'; import type { KeyboardEvent } from '../../ink/events/keyboard-event.js'; import type { Color, Styles } from '../../ink/styles.js'; import { type Theme } from '../../theme.js'; type ThemedColorProps = { readonly borderColor?: keyof Theme | Color; readonly borderTopColor?: keyof Theme | Color; readonly borderBottomColor?: keyof Theme | Color; readonly borderLeftColor?: keyof Theme | Color; readonly borderRightColor?: keyof Theme | Color; readonly backgroundColor?: keyof Theme | Color; }; type BaseStylesWithoutColors = Omit; export type Props = BaseStylesWithoutColors & ThemedColorProps & { ref?: Ref; tabIndex?: number; autoFocus?: boolean; onClick?: (event: ClickEvent) => void; onFocus?: (event: FocusEvent) => void; onFocusCapture?: (event: FocusEvent) => void; onBlur?: (event: FocusEvent) => void; onBlurCapture?: (event: FocusEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; onKeyDownCapture?: (event: KeyboardEvent) => void; onMouseEnter?: () => void; onMouseLeave?: () => void; }; /** * Theme-aware Box component that resolves theme color keys to raw colors * (ported from the leak's design-system). */ declare function ThemedBox({ borderColor, borderTopColor, borderBottomColor, borderLeftColor, borderRightColor, backgroundColor, ...rest }: PropsWithChildren): React.ReactNode; export default ThemedBox; //# sourceMappingURL=ThemedBox.d.ts.map