UNPKG

@flesh-and-blood/types

Version:

TypeScript representations of Flesh and Blood card types

39 lines (38 loc) 1.37 kB
import { Card, Type, Keyword, Subtype, Trait } from "../interfaces"; export declare const getCardIdentifier: (card: { name: string; pitch?: string | number; }, useNumber?: boolean) => string; export declare const getCardFromGEMCardIdentifier: (gemCardIdentifier: string, cards: { cardIdentifier: string; oppositeSideCardIdentifiers?: string[]; }[]) => Card | undefined; export declare const getFrontAndBackCardIdentifier: (card: { name: string; pitch?: string | number; }, cardBack?: { name: string; pitch?: string | number; }, useNumber?: boolean) => string; export declare const getIsArenaCard: ({ keywords, traits, types, }: { keywords?: Keyword[]; traits?: Trait[]; types: Type[]; }) => boolean; export declare const getIsDeckCard: ({ keywords, traits, types, }: { keywords?: Keyword[]; traits?: Trait[]; types: Type[]; }) => boolean; export declare const getIsCardTokenForDeck: ({ keywords, traits, types, }: { keywords?: Keyword[]; traits?: Trait[]; types: Type[]; }) => boolean; export declare const getCanCardBeTokenForDeck: (card: Card) => boolean; export declare const getCanAddToDeck: ({ isCardBack, keywords, traits, types, }: Card) => boolean; export declare const getShouldRotateCardImage: (card: { keywords?: Keyword[]; subtypes?: Subtype[]; types?: Type[]; }) => boolean;