import { type Size } from '../sizes.ts'; /** Expected geometry per size in px (decision 12); asserting literals checks the theme, not just self-consistency. */ export declare const GEOMETRY: Record; /** Control height per size: the block less its inset on both sides. */ export declare const controlSize: (size: Size) => number; /** * A trailing icon (a control's caret, trigger or stepper; a row's icon-only action) sits in the block-wide end cell of * whatever ends at `end`: its centre half a block from that edge and its box the control icon size, so every trailing * icon of a form column shares one column and one size. */ export declare const expectEndCell: (icon: Element | null | undefined, end: number, size: Size, message: string) => Promise; export declare const byTestId: (root: HTMLElement, testId: string) => HTMLElement; /** The `withSizes` row (`stories.tsx`) holding the story rendered at `size`. */ export declare const sizeRow: (root: HTMLElement, size: Size) => HTMLElement; export declare const centreY: (rect: DOMRect) => number; export declare const centreX: (rect: DOMRect) => number; /** * The surface a popup is painted on: the popup itself, or the ScrollArea frame of a scrolling popup (Menu, Select, * Combobox), whose viewport is the Ark content. */ export declare const popupFrame: (popup: HTMLElement) => HTMLElement; /** * Asserts a popup renders at `size` (Phase 4 decision 2): its surface carries the `data-size` and resolves that size's * block, so its rows take that size's metrics. */ export declare const expectPopupSize: (popup: HTMLElement, size: Size) => Promise; /** * Waits until `popup` sits 0–3px below `anchor` (the 2px gutter plus rounding) with its start edge or centre aligned * to the anchor's, allowing only the shift that keeps it inside the viewport; an unpositioned popup sits at the * viewport origin and fails. */ export declare const expectAnchoredBelow: (anchor: HTMLElement, popup: HTMLElement, align?: 'start' | 'center') => Promise; /** * Asserts `popup` shows an arrow in its own surface colour on the side facing `anchor` (any of the four), within the * anchor's span and with its tip 0–3px (the gutter) from it; the popup body keeps the arrow's half-size further off. * The arrow sits under the popup's content but over its surface, so the popup must be a stacking context: otherwise * the surface and its ring paint over the arrow's base and leave only a sliver of it. */ export declare const expectArrow: (anchor: HTMLElement, popup: HTMLElement) => Promise; /** * Asserts a long popup scrolls in a Next ScrollArea (DESIGN.md follow-up 49): its viewport (the Ark content) overflows, * shows no native bar, and keeps the highlighted item in view while ArrowDown walks `steps` items past the fold. */ export declare const expectScrollingPopup: (popup: HTMLElement, steps: number) => Promise; /** * Asserts an overflowing popup's overlay thumb sits inside the viewport's inset focus ring, and that the popup reserves * the thumb's strip so no item (nor its last part, e.g. a shortcut) reaches the thumb. */ export declare const expectThumbReserve: (popup: HTMLElement) => Promise; /** Asserts a popup that fits shows no thumb and reserves no strip for one. */ export declare const expectNonScrollingPopup: (popup: HTMLElement) => Promise; /** Hovers with a real pointer (the storybook runner's Playwright), since synthetic events never apply `:hover`. */ export declare const realHover: (element: HTMLElement) => Promise; /** Moves the real pointer off `element` (to the page's top-left corner), so `pointerleave` and `:hover` follow. */ export declare const realUnhover: (element: HTMLElement) => Promise; /** * Records "ResizeObserver loop" errors from now until the returned check runs, which fails if any arrived; the browser * reports them as window `error` events, which the runner logs without failing the test. */ export declare const watchResizeObserverLoop: (root: HTMLElement) => () => Promise; /** Every themed part carries Ark's scope/part attributes (decision 10). */ export declare const expectScoped: (root: HTMLElement) => Promise; /** Icons without a label are decorative and hidden from assistive tech (decision 9). */ export declare const expectDecorativeIconsHidden: (root: HTMLElement) => Promise; /** Watches for `ms` and fails if any tooltip appears meanwhile, even briefly (a flash). */ export declare const expectNoTooltip: (root: HTMLElement, ms?: number) => Promise; /** Waits for the one open tooltip to show `text` within the 2px gutter (+ rounding) of `trigger`, and returns it. */ export declare const expectTooltip: (trigger: HTMLElement, text: string) => Promise; //# sourceMappingURL=geometry.d.ts.map