tarotap
Version:
Complete 78-card Tarot deck library with 12-language support (EN/DE/ES/FR/IT/JA/KO/NL/PT/RU/TW/ZH) and TypeScript
49 lines • 1.65 kB
TypeScript
/**
* Tarotap - Professional AI Tarot Reading Library
*
* Complete 78-card Tarot deck with comprehensive functionality
* Powering https://tarotap.com/en - Free AI Tarot Divination Platform
*
* @author Tarotap Team <https://tarotap.com/en>
* @version 1.0.0
*/
import { TarotCard, Suit, Language } from './types';
/**
* Get all tarot cards (English by default)
*/
export declare function getAllCards(language?: Language): TarotCard[];
/**
* Get a specific card by ID
*/
export declare function getCardById(cardId: string, language?: Language): TarotCard | null;
/**
* Get a random card from the deck
*/
export declare function getRandomCard(language?: Language): TarotCard;
/**
* Get multiple random cards (for spreads)
*/
export declare function drawCards(count?: number, allowDuplicates?: boolean, language?: Language): TarotCard[];
/**
* Get Major Arcana cards only (22 cards)
*/
export declare function getMajorArcana(language?: Language): TarotCard[];
/**
* Get Minor Arcana cards only (56 cards)
*/
export declare function getMinorArcana(language?: Language): TarotCard[];
/**
* Get cards by suit (for Minor Arcana)
*/
export declare function getCardsBySuit(suit: Suit, language?: Language): TarotCard[];
/**
* Search cards by name
*/
export declare function searchCards(query: string, language?: Language): TarotCard[];
export declare const cards: TarotCard[];
export declare const TOTAL_CARDS: number;
export declare const MAJOR_ARCANA_COUNT = 22;
export declare const MINOR_ARCANA_COUNT = 56;
export declare const SUITS: Suit[];
export type { TarotCard, Suit, Language } from './types';
//# sourceMappingURL=index.d.ts.map