import { IBaseSelectOption, IQueryParams, IToOptionMapper } from "@leight-core/leight"; import { SelectProps } from "antd"; import React, { PropsWithChildren } from "react"; export interface IQuerySourceValue extends IBaseSelectOption { entity: TResponse; } export interface IQuerySourceSelectProps extends Partial>, "onSelect">> { /** * Map requested data into Select's options. */ toOption: IToOptionMapper; /** * Use label as placeholder for the select. */ usePlaceholder?: boolean; /** * Select first value when available. */ useFirst?: boolean; /** * When this "something" changes, input is cleared (value set to undefined); this can be used to externally * clear this input on change. */ clearOn?: any; /** * When se to true, select will filter values set. */ filter?: boolean; disableOnEmpty?: boolean; /** * Debounce interval in ms. */ debounce?: number; onSelect?: (value: IQuerySourceValue) => void; } export declare const QuerySourceSelect: ({ toOption, value, debounce, clearOn, usePlaceholder, useFirst, showSearch, filter, disableOnEmpty, onSelect, ...props }: React.PropsWithChildren>) => JSX.Element;