import { Component, TypeDefs, VNode } from 'intact-vue'; import { Options, Feedback } from '../position'; import { Portal, PortalProps } from '../portal'; import { FeedbackCallback } from './usePosition'; import type { Events } from '../types'; import { Virtual } from '../virtual'; export type Position = Options; export type PositionShorthand = 'left' | 'bottom' | 'right' | 'top'; export declare const DROPDOWN = "Dropdown"; export declare const ROOT_DROPDOWN = "RootDropdown"; export interface DropdownProps { trigger?: 'hover' | 'click' | 'contextmenu' | 'focus'; disabled?: boolean; value?: boolean; position?: Position | 'left' | 'bottom' | 'right' | 'top'; collison?: Position['collision']; of?: 'self' | 'parent' | Event; container?: PortalProps['container']; alwaysShowOnClick?: boolean; } export interface DropdownEvents { shouldFocus: []; show: []; hide: []; mouseenter: [MouseEvent]; mouseleave: [MouseEvent]; click: [MouseEvent]; contextmenu: [MouseEvent]; positioned: [Feedback]; } export interface DropdownBlocks { } export declare class Dropdown extends Component { static $doubleVNodes: boolean; static typeDefs: Required>; static defaults: () => Partial; static events: Events; static template: (this: Dropdown) => (VNode | VNode)[]; menuVNode: VNode | null; dropdown: Dropdown | null; rootDropdown: Dropdown | null; showedDropdown: Dropdown | null; positionHook: { handle: (callback: FeedbackCallback) => void; positioned: { value: boolean; }; }; private config; protected timer: number | undefined; init(): void; show(shouldFocus?: boolean): void; hide(immediately?: boolean): void; focusFirst(): void; position(callback?: FeedbackCallback): void; private onEnter; private onContextMenu; private onLeave; private initEventCallbacks; }