export type { CardFaceContext, CardFaceRenderer } from "./ui/card-element.ts"; export { ToranpuCard } from "./ui/card-element.ts"; export type { SpinOptions } from "./ui/element-kit.ts"; export { ELEMENT_SIZES } from "./ui/element-kit.ts"; export type { HandTurnOptions } from "./ui/hand-element.ts"; export { BUNDLE_BACKS, ToranpuHand } from "./ui/hand-element.ts"; export type { CardLands, CardOrder, CardPlace, HandLayoutOptions, PartOptions, PileLayoutOptions, } from "./ui/layout.ts"; export { arrangeCards, handLayout, mixCards, partedHandLayout, pileLayout, readHand, replaceCard, tossCard, } from "./ui/layout.ts"; export { ToranpuPile } from "./ui/pile-element.ts"; export { registerBack as registerCardBack, registerDesign as registerCardDesign } from "./ui/registry.ts"; /** The elements' tags. * @example * ```ts * import { TORANPU_TAGS } from "@johnmorrisdotca/toranpu/element"; * console.log(typeof TORANPU_TAGS); // object * ``` */ export declare const TORANPU_TAGS: { readonly card: "toranpu-card"; readonly hand: "toranpu-hand"; readonly pile: "toranpu-pile"; }; /** Register the elements under their tags, once; a tag already taken is left as it is. Does nothing where there are no custom elements, as on a server. * @returns Nothing; existing definitions and server imports remain safe. * @example * ```ts * import { defineToranpuElements } from "@johnmorrisdotca/toranpu/element"; * defineToranpuElements(); * console.log(typeof defineToranpuElements); // function * ``` */ export declare function defineToranpuElements(): void; /** * Register a hand under its standard tag or a host-supplied tag. Safe when no browser is present. * @param tag - The tag to register, toranpu-hand by default. * @returns Nothing; the tag is registered once where a browser is present. * @example * ```ts * import { defineHand } from "@johnmorrisdotca/toranpu/element"; * defineHand(); * console.log(typeof defineHand); * ``` */ export declare function defineHand(tag?: "toranpu-hand"): void;