/// import type { State } from "../state/state.js"; import { ChildTrait } from "../traits/child.js"; import { Entity } from "../traits/entity.js"; import { IdentityTrait } from "../traits/identity.js"; import { LabelTrait } from "../traits/label.js"; import { LocationTrait } from "../traits/location.js"; import { OwnershipTrait } from "../traits/ownership.js"; import { ParentTrait } from "../traits/parent.js"; import { SelectableChildrenTrait } from "../traits/selectableChildren.js"; import { SortingFunction, sortOnChildAdded } from "./utils/sorting.js"; /** * Hand of cards. * * Give it a special rendering on client side. * * @category Entity */ export declare class Hand extends Entity { autoSort: SortingFunction; create(state: State, options?: HandOptions): void; childAdded: typeof sortOnChildAdded; } interface Mixin extends IdentityTrait, LocationTrait, ChildTrait, ParentTrait, LabelTrait, OwnershipTrait, SelectableChildrenTrait { } type HandOptions = Partial & { autoSort: SortingFunction; }>; export interface Hand extends Mixin { } export {};