import { IDeckConfig, PokerCards } from '../types/deck-config'; import { IValidHands, IValidHandSetStruct, IValidHandStraightStruct } from '../types/game-config'; import { Card } from './deck'; export declare const POKER_JOKER = "Joker"; /** * Checks if a list of cards is a valid straight * @param cards Card[] * @param wildCard A poker card or null if wilds are not supported * @param wildCardMaxGap the max number of wild cards allowed together. Null means no max, defaults to 1 * @returns boolean */ export declare function validStraight(cards: Card[], wildCard?: PokerCards | null, wildCardMaxGap?: number | null): boolean; /** * Checks if a list of cards is a valid flush * @param cards Card[] * @param wildCard A poker card or null if wilds are not supported * @returns boolean */ export declare function validFlush(cards: Card[], wildCard?: PokerCards | null): boolean; /** * Checks if a list of cards is a valid full house * @param cards Card[] * @param wildCard A poker card or null if wilds are not supported * @returns boolean */ export declare function validFullHouse(cards: Card[], wildCard?: PokerCards | null): boolean; export declare function validPokerHand(cards: Array, deckConfig?: IDeckConfig): boolean; export declare function matchSetRules(count: number, rules: IValidHandSetStruct[]): boolean; export declare function matchStraightRules(cards: Card[], flush: boolean, rules: IValidHandStraightStruct[]): boolean; /** * Checks if a list of cards is a valid play * @param cards list of card names * @param allowedHands list of hand types that are allowed * @param deckConfig used for wildcard and card values * @returns boolean */ export declare function validHand(cards: Array, allowedHands: Array, deckConfig?: IDeckConfig): boolean; //# sourceMappingURL=checkHand.d.ts.map