import type { CSSProperties } from 'react'; /** * Result of splitting component props into layout classes, inline styles and everything else. * @internal */ export type SplitLayoutPropsResult = [ className: string, style: CSSProperties, remainingProps: Record ]; /** * Describes how a layout component maps its props. * @internal */ export interface LayoutPropsSpec { /** Props that are forwarded unchanged to the inline `style`. */ styleKeys: ReadonlyArray; /** Boolean prop that opts out of the `display` class. */ itemKey: string; /** The `display` class added unless the item prop is set. */ display: 'flex' | 'grid'; } /** * Creates a function that splits props in a single pass. The key lookup table is built once, * so each call walks the props one time and calls the sprinkles function once. * @internal */ export declare function createLayoutPropsSplitter(spec: LayoutPropsSpec): (props: object, defaults?: object) => SplitLayoutPropsResult; //# sourceMappingURL=splitLayoutProps.d.ts.map