import { type Middleware, type Placement } from "@floating-ui/dom"; import { type ReadableBoxedValues, type Box } from "svelte-toolbelt"; import { type FloatingRootState } from "./floating-root.svelte.js"; import type { Arrayable, WithRefOpts } from "../../../internal/types.js"; import type { Measurable, UseFloatingReturn } from "../../../internal/floating-svelte/types.js"; import type { Direction, StyleProperties } from "../../../shared/index.js"; export declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"]; export declare const ALIGN_OPTIONS: readonly ["start", "center", "end"]; export type Side = (typeof SIDE_OPTIONS)[number]; export type Align = (typeof ALIGN_OPTIONS)[number]; export type Boundary = Element | null; export interface FloatingContentStateOpts extends ReadableBoxedValues<{ id: string; wrapperId: string; side: Side; sideOffset: number; align: Align; alignOffset: number; arrowPadding: number; avoidCollisions: boolean; collisionBoundary: Arrayable; collisionPadding: number | Partial>; sticky: "partial" | "always"; hideWhenDetached: boolean; updatePositionStrategy: "optimized" | "always"; strategy: "fixed" | "absolute"; onPlaced: () => void; dir: Direction; style: StyleProperties | null | undefined | string; enabled: boolean; customAnchor: string | HTMLElement | null | Measurable; }> { } export declare class FloatingContentState { #private; static create(opts: FloatingContentStateOpts, tooltip?: boolean): FloatingContentState; readonly opts: FloatingContentStateOpts; readonly root: FloatingRootState; contentRef: import("svelte-toolbelt").WritableBox; wrapperRef: import("svelte-toolbelt").WritableBox; arrowRef: import("svelte-toolbelt").WritableBox; readonly contentAttachment: { [x: symbol]: (node: HTMLElement) => () => void; }; readonly wrapperAttachment: { [x: symbol]: (node: HTMLElement) => () => void; }; readonly arrowAttachment: { [x: symbol]: (node: HTMLElement) => () => void; }; arrowId: Box; hasExplicitBoundaries: boolean; detectOverflowOptions: { padding: number | Partial>; boundary: Element[]; altBoundary: boolean; }; middleware: Middleware[]; floating: UseFloatingReturn; placedSide: "left" | "right" | "top" | "bottom"; placedAlign: "center" | "start" | "end"; arrowX: number; arrowY: number; cannotCenterArrow: boolean; contentZIndex: string; arrowBaseSide: "left" | "right" | "top" | "bottom"; wrapperProps: { readonly id: string; readonly "data-bits-floating-content-wrapper": ""; readonly style: any; readonly dir: Direction; }; props: { readonly "data-side": "left" | "right" | "top" | "bottom"; readonly "data-align": "center" | "start" | "end"; readonly style: string; }; arrowStyle: { [x: string]: string | number | undefined; position: string; left: string | undefined; top: string | undefined; "transform-origin": string; transform: string; visibility: string | undefined; }; constructor(opts: FloatingContentStateOpts, root: FloatingRootState); } interface FloatingArrowStateOpts extends WithRefOpts { } export declare class FloatingArrowState { static create(opts: FloatingArrowStateOpts): FloatingArrowState; readonly opts: FloatingArrowStateOpts; readonly content: FloatingContentState; constructor(opts: FloatingArrowStateOpts, content: FloatingContentState); readonly props: { readonly id: string; readonly style: { [x: string]: string | number | undefined; position: string; left: string | undefined; top: string | undefined; "transform-origin": string; transform: string; visibility: string | undefined; }; readonly "data-side": "left" | "right" | "top" | "bottom"; }; } export declare function getSideFromPlacement(placement: Placement): "left" | "right" | "top" | "bottom"; export declare function getAlignFromPlacement(placement: Placement): "center" | "start" | "end"; export {};