import React, { Component } from 'react'; import type { FlatListProps, StyleProp, ViewStyle } from 'react-native'; import type { CommerceDataSource, CommerceTypes, WithCommerceProps, WithCommerceProviderProps } from '../../../libs/fscommerce'; import type { CategoryBoxProps, GridProps } from '../../../libs/fscomponents'; export interface UnwrappedCategoryProps { categoryId?: string; format?: 'grid' | 'list'; columns?: number; onNavigate?: (data: CommerceTypes.Category) => void; categoryGridProps?: Partial>; listViewProps?: Partial>; categoryItemProps?: Partial; renderCategoryItem?: (data: CommerceTypes.Category) => JSX.Element; style?: StyleProp; loadingStyle?: StyleProp; listStyle?: StyleProp; } export declare type CategoryProps = UnwrappedCategoryProps & WithCommerceProviderProps; export declare class Category extends Component> { componentDidUpdate(prevProps: UnwrappedCategoryProps & WithCommerceProps): void; render(): JSX.Element; } declare const _default: React.ComponentClass, any>; export default _default;