import { i as ThemeColor } from "./types-CbJroQxH.mjs"; import { ComponentProps, ReactNode, RefObject } from "react"; import { Placement, useInteractions } from "@floating-ui/react"; import { BBox, Geometry } from "geojson"; //#region src/components/select-legacy/interface.d.ts type OptionLike = Option | GeoOption; type Option = { type?: "Option"; value: string | number; label: string; }; type NoDataOption = { id: string; type: "nodata"; }; /** For compatibility with OptionLike. get original types from pentatrion-geo */ type GeoOption = { id: string; type: "Feature"; properties: FeatureProperties; geometry: G; bbox?: BBox | undefined; }; type FeatureProperties = { id: string; /** computed name + short context for input string */ label: string; name: string; context: string | null; score: number; type: T; originalProperties?: any; }; //#endregion //#region src/components/select-legacy/SelectOption.d.ts type Props = O; declare function SelectOption({ label }: Props): import("react").JSX.Element; //#endregion //#region src/components/select-legacy/SelectSelection.d.ts type SelectSelectionProps = O & { multiple?: boolean; }; declare function SelectSelection({ label, multiple }: SelectSelectionProps): import("react").JSX.Element; //#endregion //#region src/components/select-legacy/Select.d.ts type SelectValue = number | string | readonly string[] | null; type SelectChangeEventLike = { target: { type: "select-one"; value: SelectValue; name: string; }; }; type SelectProps = { variant?: "normal" | "ghost"; showArrow?: boolean; selectionClassName?: string; dialogClassName?: string; width?: number | string; floatingMinWidth?: number; placement?: Placement; options: O[]; color?: ThemeColor; size?: "small" | "medium" | "large" | "custom"; placeholder?: string; getSearchableValue?: (matchReg: RegExp, option: O) => string; searchable?: boolean; selectOptionComponent?: (props: O) => ReactNode; selectSelectionComponent?: (props: SelectSelectionProps) => ReactNode; defaultValue?: SelectValue; value?: SelectValue; onChange?: ((e: SelectChangeEventLike) => void) | null; zIndex?: number; ref?: RefObject; } & Omit, "onChange" | "value" | "defaultValue" | "multiple" | "size">; declare function SelectLegacy({ id, variant, disabled, showArrow, selectionClassName, dialogClassName, width, floatingMinWidth, placement, searchable, required, defaultValue, name, value: controlledValue, onChange, placeholder, getSearchableValue, selectSelectionComponent: SelectSelectionCustomComponent, selectOptionComponent: SelectOptionCustomComponent, options, zIndex, color, size, ref, onFocus, onBlur }: SelectProps): import("react").JSX.Element; //#endregion //#region src/components/select-legacy/useSelectContext.d.ts interface SelectContext { activeIndex: number | null; selectedIndex: number | null; getItemProps: ReturnType["getItemProps"]; handleSelect: (index: number | null) => void; } declare const SelectContext: import("react").Context; declare function useSelect(): SelectContext; //#endregion export { SelectSelection as a, NoDataOption as c, SelectProps as i, Option as l, useSelect as n, SelectSelectionProps as o, SelectLegacy as r, SelectOption as s, SelectContext as t, OptionLike as u }; //# sourceMappingURL=index-C03MgO8e.d.mts.map