rubik-cipher
Version:
Simple rubik cube cipher
11 lines (10 loc) • 818 B
TypeScript
import { ScrambleObject, RubikCipherConfigRequired } from '../RubikCipherInterfaces';
export declare const chunkString: (str: string, length: number) => RegExpMatchArray | null;
export declare const minimalSizeByText: (text: string) => number;
export declare const canFitInCube: (text: string, size: number) => boolean;
export declare const getInverseCombination: (combination: ScrambleObject[]) => ScrambleObject[];
export declare const getAllIndexes: (cube: any, size: number) => number[];
export declare const isValidKey: (text: string, key: string) => boolean;
export declare const getDataFromKey: (text: string, key: string) => RubikCipherConfigRequired;
export declare const encodeScramble: (turnObj: ScrambleObject) => string;
export declare const decodeScramble: (turnStr: string) => ScrambleObject;