dop-stick
Version:
Source control tooling for versionable-upgradeable smart contracts
50 lines • 1.59 kB
TypeScript
import { ProgressBarOptions } from '../core/progress';
export interface ProgressAdapter {
createProgress(id: string, totalSteps: number, options: ProgressBarOptions): string;
completeProgress(id: string, success: boolean, message?: string): void;
}
export declare class ProgressAdapter {
private static instance;
private progressBars;
private activeSpinner;
private constructor();
static getInstance(): ProgressAdapter;
/**
* Creates and tracks a progress bar for module validation
*/
trackModuleValidation(total: number): string;
/**
* Updates progress for module validation
*/
updateModuleValidation(id: string, current: number, status?: string): void;
/**
* Gets a progress bar by ID
*/
private getProgress;
/**
* Marks a progress bar as failed
*/
failProgress(id: string, message?: string): void;
/**
* Completes module validation tracking
*/
completeModuleValidation(id: string, success: boolean, message?: string): void;
/**
* Updates progress for a specific operation
*/
updateProgress(id: string, current: number, status?: string): void;
/**
* Starts a spinner with a message
*/
startSpinner(message: string): string;
/**
* Stops the active spinner with optional success state and message
*/
stopSpinner(success?: boolean, message?: string): void;
/**
* Cleans up all progress tracking
*/
cleanup(): void;
}
export type { ProgressBarOptions };
//# sourceMappingURL=progressAdapter.d.ts.map