import { record } from '@synnaxlabs/x'; import { ReactElement } from 'react'; import { Dialog } from '../dialog'; import { List } from '../list'; import { DialogProps } from './Dialog'; import { SingleFrameProps } from './Frame'; import { SingleTriggerProps } from './SingleTrigger'; export interface SingleProps | undefined> extends Omit, "multiple" | "children">, Pick, "emptyContent" | "status" | "onSearch" | "actions" | "footer">, Omit, Pick, Pick, "children"> { /** Singular name of the thing being selected. It builds the placeholder and the * empty and error content. */ resourceName: string; variant?: Dialog.FrameProps["variant"]; /** Whether to render the trigger flat and inert, for use inside a preview. */ preview?: boolean; triggerProps?: SingleTriggerProps; dialogProps?: Dialog.FrameProps; } /** * A dropdown that selects one entry. Pass `data` and `getItem` from a list data hook, * and a `children` render prop for the item. * * @example * */ export declare const Single: | undefined>({ resourceName, onChange, value, allowNone, emptyContent, haulType, data, getItem, subscribe, itemHeight, onFetchMore, disabled, onSearch, status, icon, children, variant, preview, actions, footer, dialogProps, triggerProps, virtual, closeDialogOnSelect, ...rest }: SingleProps) => ReactElement; //# sourceMappingURL=Single.d.ts.map