import { JGOFTimeControl, JGOFTimeControlSpeed } from "../formats/JGOF"; /** * Parses an SGF OT (overtime) property string into a partial JGOFTimeControl. * * Recognized formats: * Canadian: "15/300 Canadian" * Fischer: "30 Fischer" * Byoyomi: "5x30 byo-yomi" * Simple: "60 simple" * * @param ot The OT property value from an SGF file * @param main_time_ms Main time in milliseconds (from TM property), used to * populate required fields on the time control object * @returns A JGOFTimeControl if the format is recognized, or null otherwise */ export declare function parseSGFOvertime(ot: string, main_time_ms?: number): JGOFTimeControl | null; /** * Classify a per-move time (in milliseconds) into a speed category. * Thresholds mirror the server's `getGameSpeed`: * blitz: 0 < tpm < 10s * live: 10s <= tpm < 3600s * correspondence: tpm >= 3600s or tpm == 0 */ export declare function estimateSpeed(time_per_move_ms: number): JGOFTimeControlSpeed; /** * Compute the speed category from a complete JGOFTimeControl, based on * expected time-per-move rather than total budget. Mirrors the server's * `calculate_average_move_time` + `getGameSpeed` pairing. */ export declare function computeTimeControlSpeed(tc: JGOFTimeControl, width?: number, height?: number): JGOFTimeControlSpeed;