/// import { listItemSectionBuilder } from '@wix/design-system'; import { ArrayField, KeyedItem } from '@wix/bex-core'; import { ListItem } from './listItem'; import { DropdownLayoutOption } from '@wix/design-system/dist/types/DropdownLayout'; export interface BuildOptionState { disabled?: boolean; disabledDescription?: string; } export declare function useBuildOption({ filter, checkbox, renderItem, getOptionState, }: { filter: ArrayField; renderItem?: (item: V, index: number) => ListItem; checkbox?: boolean; getOptionState?: (key: string) => BuildOptionState; }): (keyedItem: KeyedItem, index: number) => { id: string | number; disabled: boolean | undefined; overrideOptionStyle: boolean; label: import("react").ReactNode; prefix: import("react").ReactNode; value: ({ selected, hovered, size: restSize, ...rest }: import("@wix/design-system").ListItemSelectProps & { hovered?: boolean | undefined; }) => import("react").JSX.Element; } & { sectionId: string | undefined; keyedItem: KeyedItem; }; type DropdownLayoutOptionWithSectionId = DropdownLayoutOption & { sectionId?: string; }; export interface BuildSectionOptionsArgs { readonly items: DropdownLayoutOptionWithSectionId[]; readonly renderSection?: (sectionId: string) => Parameters[0]; } export declare function useBuildGroupedOptions({ items, renderSection, }: BuildSectionOptionsArgs): DropdownLayoutOption[]; export {}; //# sourceMappingURL=useBuildOption.d.ts.map