import type { ViewProps } from "@tarojs/components/types/View"; import { type ReactNode } from "react"; import { type PickerOptionObject, type PickerOptionData } from "./picker.shared"; export interface PickerBaseProps extends ViewProps { readonly?: boolean; loading?: boolean; siblingCount?: number; optionHeight?: string | number; title?: ReactNode; confirmText?: ReactNode; cancelText?: ReactNode; columns?: PickerOptionData[] | PickerOptionData[][]; columnsFieldNames?: { label?: string; value?: string; }; children?: ReactNode; } export interface PickerProps extends PickerBaseProps { defaultValue?: string | string[]; value?: string | string[]; onChange?(values: string | string[], option: PickerOptionObject, column: PickerOptionObject): void; onConfirm?(values: string | string[], option: PickerOptionObject | PickerOptionObject[]): void; onCancel?(values: string | string[], option: PickerOptionObject | PickerOptionObject[]): void; } declare function Picker(props: PickerProps): JSX.Element; export default Picker;