/** * Show an error in the console and on the screen. * * @param text The error message * @returns Always returns true, for consistency with {@link log}. */ export declare function error(text: string): true; /** * Print a logging message to console and on the screen if debugging mode is on. * * @param text Text to log * @returns Returns true if a debugging message was printed, false otherwise. */ export declare function log(text: string): boolean; /** * Set the debugging status off. * * @returns Returns the new status (always false). */ export declare function off(): false; /** * Set the debugging status on. * * @returns Returns the new status (always true). */ export declare function on(): true; /** * @returns Returns the current state of the debugging flag. */ export declare function status(): boolean; /** * Set or unset the debugging flag. * * @param newState If a boolean is passed as an argument, the debugging flag is set to that value. * Otherwise the flag's previous value is flipped (true to false, false to true.) * * @returns Returns the new status of the debugging flag. */ export declare function toggle(newState?: boolean): boolean;