import { type CardPlace } from "./layout.ts"; /** How many backs a squared-up bundle shows, whatever the hand: a bundle never tells how many cards are in it. * * @example * ```ts * import { BUNDLE_BACKS } from "@johnmorrisdotca/toranpu/element"; * console.log(BUNDLE_BACKS); * ``` */ export declare const BUNDLE_BACKS = 3; /** How long a tossed card takes to lift away, before the hand closes up after it. */ export declare const TOSS_MS = 300; /** How long the old cards of a new deal take to gather in, before the new ones open: the cards' move (.45 s) and a breath. */ export declare const DEAL_GATHER_MS = 470; /** The hand's stylesheet: the fan, the turn, and the room a card keeps as it moves. */ export declare const HAND_STYLE = "\n:host { display: inline-block; user-select: none; -webkit-user-select: none; vertical-align: middle; -webkit-tap-highlight-color: transparent; max-width: 100%; width: calc(var(--toranpu-w, 70px) * var(--toranpu-across, 1)); container-type: inline-size; }\n:host([reveal]) { cursor: pointer; }\n:host(:focus-visible) { outline: 3px solid var(--toranpu-focus, #b5452c); outline-offset: 4px; border-radius: 8px; }\n.hand { --cw: min(var(--toranpu-w, 70px), calc(100cqw / var(--across))); position: relative; width: 100%; height: calc(var(--cw) * (1.4 + var(--drop) + .14 + var(--side) * .45)); }\n.slot { position: absolute; left: calc(var(--cw) * (var(--x) + var(--side) + .06)); top: calc(var(--cw) * (var(--y) + .05)); width: var(--cw); aspect-ratio: 5 / 7; transform: rotate(var(--r)); transform-origin: 50% 120%; perspective: 800px; }\n.spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }\n.turn { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }\n.slot[data-down=\"true\"] .turn { transform: rotateY(180deg); }\n.side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }\n.back { transform: rotateY(180deg); }\n.side svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 1px 2px rgba(0,0,0,.28)); }\n.hand[data-moving=\"true\"] .slot { transition: left .45s cubic-bezier(.3,.7,.3,1), top .45s cubic-bezier(.3,.7,.3,1), transform .45s cubic-bezier(.3,.7,.3,1); }\n.hand[data-moving=\"true\"] .turn { transition: transform var(--toranpu-flip-ms, 450ms) cubic-bezier(.3,.7,.3,1) var(--delay, 0ms); }\n@media (prefers-reduced-motion: reduce) { .hand[data-moving=\"true\"] .slot, .hand[data-moving=\"true\"] .turn { transition: none; } }\n.marker { position: absolute; left: -6%; top: -4%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--toranpu-marker, #f2b134); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.45); pointer-events: none; }\n"; /** Where each of these cards lies for a state: squared up into a bundle when scrunched, parted at a card, or fanned as open as asked. */ export declare function handPlaces(cards: readonly string[], state: { open: number; scrunched: boolean; parted: string | null; }): CardPlace[];