import { ComponentOptionsMixin } from 'vue';
import { ComponentProvideOptions } from 'vue';
import { ComputedRef } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { PropType } from 'vue';
import { PublicProps } from 'vue';

declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;

declare type __VLS_Prettify<T> = {
    [K in keyof T]: T[K];
} & {};

declare type __VLS_TypePropsToRuntimeProps<T> = {
    [K in keyof T]-?: {} extends Pick<T, K> ? {
        type: PropType<__VLS_NonUndefinedable<T[K]>>;
    } : {
        type: PropType<T[K]>;
        required: true;
    };
};

declare type __VLS_WithDefaults<P, D> = {
    [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
        default: D[K];
    }> : P[K];
};

declare type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};

declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
align: string;
label: string;
closeManually: boolean;
offset: () => {};
reattach: boolean;
contentClass: string;
fluidContent: boolean;
}>>, {
isActive: ComputedRef<boolean>;
toggle: typeof toggle;
dismiss: typeof dismiss;
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
toggle: (isActive: boolean) => void;
dismiss: () => void;
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
align: string;
label: string;
closeManually: boolean;
offset: () => {};
reattach: boolean;
contentClass: string;
fluidContent: boolean;
}>>> & Readonly<{
onToggle?: ((isActive: boolean) => any) | undefined;
onDismiss?: (() => any) | undefined;
}>, {
label: string;
align: "left" | "right";
closeManually: boolean;
offset: DropdownOffset;
reattach: boolean;
contentClass: string | string[];
fluidContent: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
    toggle?(_: {
        isActive: boolean;
        toggle: typeof toggle;
    }): any;
    default?(_: {
        dismiss: typeof dismiss;
        isActive: boolean;
    }): any;
}>;
export default _default;

/**
 * Dismisses the Dropdown.
 */
declare function dismiss(event?: Event): void;

export declare type DropdownOffset = {
    x?: number;
    y?: number;
};

export declare interface DropdownProps {
    /**
     * Used to position the dropdown relative to target
     * Options: left, right
     */
    align?: 'left' | 'right';
    /**
     * When passed, text with caret is displayed instead of default kebab menu.
     */
    label?: string;
    /**
     * If true, dropdown will remain open when clicking on its content. Otherwise, it'll close automatically on click.
     */
    closeManually?: boolean;
    /**
     * Used to horizontally and vertically offset the dropdown in pixels
     * Keep in mind, `x` value is relative to `align` value.
     */
    offset?: DropdownOffset;
    /**
     * If `reattach` is true, the contents will be mounted in the mount point container,
     * so as to circumvent clipping issues from a parent's overflow property.
     */
    reattach?: boolean;
    /**
     * Custom class to apply to the default dropdown content element
     */
    contentClass?: string | string[];
    /**
     * Removes content container's max width
     */
    fluidContent?: boolean;
}

/**
 * Opens or closes the Dropdown. If opening, positions and focuses its content.
 */
declare function toggle(): Promise<void>;

export { }
