UNPKG

@gobstones/gs-board-tsx

Version:
51 lines (50 loc) 1.39 kB
export declare type AttireJSON = { enabled: boolean; rules: Rule[]; borders: Borders; }; export declare type CellWhenAttire = { red: number | string; green: number | string; black: number | string; blue: number | string; }; export declare type Rule = { when: CellWhenAttire; image: string; text?: string; }; export declare type Borders = { bottom: string; bottomLeft: string; bottomRight: string; left: string; right: string; top: string; topLeft: string; topRight: string; }; export declare class Attire { attire: AttireJSON; constructor(att?: AttireJSON); getAttireJSON(): AttireJSON; getAttireFor(black: number, blue: number, green: number, red: number): { image: string; text: string; }; getwhen(black: number, blue: number, green: number, red: number): { image: string; text: string; }; ruleMatchWith(rule: Rule, black: number, blue: number, green: number, red: number): boolean; match(when: number | string, amount: number): boolean; matchRegex(when: string, amount: number): boolean; getTopLeftCorner(): string; getTopRightCorner(): string; getBottomRightCorner(): string; getBottomLeftCorner(): string; getBottomBorder(): string; getTopBorder(): string; getLeftBorder(): string; getRightBorder(): string; }