lorehub
Version:
Capture and surface the collective wisdom of your codebase
32 lines • 943 B
TypeScript
import React from 'react';
interface ProgressIndicatorProps {
task: string;
current?: number;
total?: number;
isIndeterminate?: boolean;
}
export declare const ProgressIndicator: React.FC<ProgressIndicatorProps>;
interface ProgressManagerProps {
tasks: {
id: string;
name: string;
current?: number;
total?: number;
status: 'pending' | 'active' | 'completed' | 'failed';
}[];
}
export declare const ProgressManager: React.FC<ProgressManagerProps>;
export declare function useProgress(): {
addTask: (id: string, name: string, total: number) => void;
updateTask: (id: string, current: number) => void;
failTask: (id: string) => void;
getTasks: () => {
name: string;
current: number;
total: number;
status: "pending" | "active" | "completed" | "failed";
id: string;
}[];
};
export {};
//# sourceMappingURL=progress.d.ts.map