import { CSSProperties, ComponentPropsWithRef, ComponentPropsWithoutRef, ElementType } from 'react'; import { OptionWithMediaQuery } from '../responsive'; type AsProps = ComponentPropsWithoutRef & { as?: C; }; type OmittingKey = keyof FlexOption | keyof StackOption | keyof GutterOption | `Moz${string}` | `Webkit${string}` | `ms${string}`; export interface BoxOption extends Omit { } export type BoxProps = AsProps & OptionWithMediaQuery; export type BoxComponentType = (props: BoxProps & Partial, 'ref'>>) => JSX.Element | null; export interface FlexOption { align?: CSSProperties['alignItems']; justify?: CSSProperties['justifyContent']; direction?: CSSProperties['flexDirection']; } export type FlexProps = BoxProps & OptionWithMediaQuery; export type FlexComponentType = (props: FlexProps & Partial, 'ref'>>) => JSX.Element | null; export type AxisDirection = 'vertical' | 'horizontal'; export interface GutterOption { spacing?: CSSProperties['gap']; } export interface StackOption extends Pick, GutterOption { direction?: AxisDirection; } export type StackProps = BoxProps & OptionWithMediaQuery; export type StackComponentType = (props: StackProps & Partial, 'ref'>>) => JSX.Element | null; export {}; //# sourceMappingURL=index.d.ts.map