import type { autoPlacement, flip, offset, shift, size } from '@floating-ui/vue'; export type { MiddlewareState } from '@floating-ui/core'; export type { Middleware } from '@floating-ui/vue'; /** * Drop the `Derivable` (callback) variant from a floating-ui option type. * The components only ever pass plain option objects, and keeping the * callback variant leaks non-portable floating-ui internals * (`Derivable`, `MiddlewareState`) into the emitted declaration files. */ type NonDerivable = Exclude unknown>; export type AutoPlacementOptions = NonDerivable[0]>; export type FlipOptions = NonDerivable[0]>; export type ShiftOptions = NonDerivable[0]>; export type OffsetOptions = NonDerivable[0]>; export type SizeOptions = NonDerivable[0]>;