404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.222.112.142: ~ $
/// <reference types="node" />
import { EventEmitter } from 'events';
export declare const ICON_SUCCESS: string;
export declare const ICON_FAILURE: string;
export declare class Spinner {
    frames: string[];
    i: number;
    constructor(frames?: string[]);
    frame(): string;
}
export interface TaskOptions {
    readonly msg?: string;
    readonly tickInterval?: number;
}
export interface TaskResult {
    /**
     * Elapsed time from process.hrtime()
     */
    elapsedTime: [number, number];
    /**
     * Whether the task succeeded or not
     */
    success: boolean;
}
export interface Task extends EventEmitter {
    on(name: 'success', handler: () => void): this;
    on(name: 'failure', handler: () => void): this;
    on(name: 'clear', handler: () => void): this;
    on(name: 'tick', handler: () => void): this;
    on(name: 'end', handler: (result: TaskResult) => void): this;
    emit(name: 'success'): boolean;
    emit(name: 'failure'): boolean;
    emit(name: 'clear'): boolean;
    emit(name: 'tick'): boolean;
    emit(name: 'end', result: TaskResult): boolean;
}
export declare class Task extends EventEmitter {
    tickInterval?: number;
    intervalId?: NodeJS.Timer;
    running: boolean;
    progressRatio?: number;
    protected _msg: string;
    protected _startTime?: [number, number];
    protected _success: boolean;
    constructor({ msg, tickInterval }?: TaskOptions);
    get msg(): string;
    set msg(msg: string);
    start(): this;
    tick(): this;
    progress(prog: number, total: number): this;
    clear(): this;
    end(): this;
    succeed(): this;
    fail(): this;
}
export interface TaskChain extends EventEmitter {
    on(name: 'end', handler: (lastTask?: Task) => void): this;
    on(name: 'failure', handler: (failedTask?: Task) => void): this;
    on(name: 'next', handler: (task: Task) => void): this;
    emit(name: 'end', lastTask?: Task): boolean;
    emit(name: 'failure', failedTask?: Task): boolean;
    emit(name: 'next', task: Task): boolean;
}
export interface TaskChainOptions {
    readonly taskOptions?: Partial<TaskOptions>;
}
export declare class TaskChain extends EventEmitter {
    protected current?: Task;
    protected readonly tasks: Task[];
    protected readonly taskOptions: Partial<TaskOptions>;
    constructor({ taskOptions }?: TaskChainOptions);
    next(msg: string): Task;
    createTask(options: TaskOptions): Task;
    nextTask(task: Task): Task;
    end(): this;
    fail(): this;
    cleanup(): this;
}

Filemanager

Name Type Size Permission Actions
colors.d.ts File 854 B 0644
colors.js File 526 B 0644
index.d.ts File 927 B 0644
index.js File 2.05 KB 0644
logger.d.ts File 3.75 KB 0644
logger.js File 6.96 KB 0644
output.d.ts File 1.38 KB 0644
output.js File 3.21 KB 0644
tasks.d.ts File 2.44 KB 0644
tasks.js File 3.51 KB 0644
utils.d.ts File 272 B 0644
utils.js File 1.01 KB 0644