typescript-libraries
Version:
To install this library, run:
29 lines (28 loc) • 727 B
TypeScript
export interface ITSPool {
matches: Array<any>;
reserve?: Array<any>;
stake: number;
size?: number;
}
export interface ITSPoolResult {
selected: Record<string, Array<string>>;
lines: number;
stake: number;
amount: number;
completed: boolean;
}
export declare class TSPool {
private params;
options: ITSPool;
result: ITSPoolResult;
private items;
private selected;
constructor(params: ITSPool);
toggleLine(k: string): ITSPoolResult;
favoriteLines(kItem?: string, property?: string): ITSPoolResult;
randomLines(kItem?: string): ITSPoolResult;
clearLines(): ITSPoolResult;
key(key: string): string;
private toggle;
private get calculate();
}