@sarahisweird/hmoog
Version:
Out-of-game automation for Hackmud
22 lines (21 loc) • 681 B
TypeScript
/**
* Gets the shell.txt path for the current system.
*/
export declare const getShellPath: () => string;
/**
* Sleep for a specified time.
* @param ms The number of milliseconds to sleep for.
*/
export declare const waitMs: (ms: number) => Promise<void>;
/**
* Helper method that removes color tags from a string.
* @param str The string to remove colors from
*/
export declare const removeColors: (str: string) => string;
/**
* Helper method to pop expected values from a list, printing a warning if it's something else.
*
* @param arr The array to pop from
* @param expected The expected value
*/
export declare const popAssert: <T>(arr: T[], expected: T) => void;