/** * Copyright (c) Paymium. * * This source code is licensed under the MIT license found in the * LICENSE file in the root of this projects source tree. */ import { GetProps } from '@crossed/core'; import { type ComponentType } from 'react'; export { Provider as ProviderDropdown, useContext as useDropdownContext, } from './context'; type Arg> = { context?: Context; }; export declare const createDropdown: , TriggerProps extends Record, ContentProps extends Record, PortalProps extends Record, ItemProps extends Record, DividerProps extends Record, LabelProps extends Record, C extends Record>(components: { Root: ComponentType; Trigger: ComponentType; Content: ComponentType; Portal: ComponentType; Item: ComponentType; Divider: ComponentType; Label: ComponentType; }, { context }?: Arg) => ((props: GetProps & import("react").RefAttributes>> & { value?: boolean; defaultValue?: boolean; onChangeOpen?: (_p: boolean) => void; }) => import("react/jsx-runtime").JSX.Element) & { Trigger: import("react").ForwardRefExoticComponent> & import("react").RefAttributes>; Content: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; Portal: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; Item: import("react").ForwardRefExoticComponent>; Divider: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; Label: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; }; //# sourceMappingURL=index.d.ts.map