import { type ViewStyle } from 'react-native'; import type { ItemProps } from './types'; export declare function getMarginTop(item: ItemProps): number; export declare function getMarginBottom(item: ItemProps): number; export declare function getPreviousValidItem(items: ArrayLike, isExcludedMap: Record, startIndex: number): T | null; export declare function validateKeyUniqueness(items: Readonly>): void; type WrapElementOptions = { /** Whether margin collapsing is enabled */ marginCollapse?: boolean; /** Items array containing: key and sizing data */ items: ArrayLike; /** Index of current item in the `items` array */ index: number; /** Map of item keys to boolean indicating if the view is to be excluded from margin collapsing */ isExcludedMap: Record; /** Callback allowing to request the render in the parent component */ onRequestRender: () => void; /** Optional style or style callback for the item wrapper */ itemWrapperStyle?: ViewStyle | ((item: T, index: number) => ViewStyle); }; export declare function wrapElement(element: React.ReactNode, { marginCollapse, items, index, isExcludedMap, onRequestRender, itemWrapperStyle, }: WrapElementOptions): React.ReactNode; export {}; //# sourceMappingURL=utils.d.ts.map