import { SearchableDropdownSection } from '@equinor/fusion-components'; import { PersonDetails } from '@equinor/fusion'; export type PersonPickerOption = { title: string; key: string; isSelected?: boolean; isDisabled?: boolean; }; export type SectionFnProps = { people: PersonDetails[]; selectedId: string; searchQuery: string; isQuerying: boolean; }; type PersonPickerProps = { label?: string; placeholder?: string; initialPerson?: PersonDetails | null; selectedPerson: PersonDetails | null; hasError?: boolean; errorMessage?: string; onSelect?: (person: PersonDetails) => void; sectionFn?: ({ people, selectedId, searchQuery, isQuerying, }: SectionFnProps) => SearchableDropdownSection[]; onOpen?: (isOpen: boolean) => void; onSearchAsync?: (query: string) => void; }; declare const _default: ({ initialPerson, selectedPerson, onSelect, hasError, errorMessage, label, placeholder, sectionFn, onOpen, onSearchAsync, }: PersonPickerProps) => JSX.Element; export default _default;