UNPKG

@idealic/poker-engine

Version:

Professional poker game engine and hand evaluator with built-in iterator utilities

34 lines 1.11 kB
/** * Single Function Parser (PokerStars → PHH) * * @instructions Parse all actions exactly as they appear in the hand history. * Do not attempt to optimize or remove redundant actions during parsing. * Compression of redundant actions should be handled separately by compactActions. */ import * as Poker from '../types'; export declare function parseHandIdentifiers(line: string): { venue: string; id: string; timestamp: number; }; export declare function parseHeaderInfo(lines: string[]): { id: string; venue: string; table: string; timestamp: number; timeZone: string; currency: string; smallBlind: number; bigBlind: number; variant: "FT" | "NT" | "PO" | "FO/8" | "F7S" | "FR"; seatCount: number; buttonSeat: number; }; /** * Parse poker hand from string input in specified format * @param input - String input to parse * @param format - Format type ('pokerstars' or 'json') * @returns Parsed hand object */ export declare function parseHand(input: string, format?: 'pokerstars' | 'json'): Poker.Hand; //# sourceMappingURL=pokerstars.d.ts.map