import { ScaffolderTask, ScaffolderTaskOutput, ScaffolderTaskStatus } from '../api'; /** * The status of the step being processed * * @public */ export type ScaffolderStep = { id: string; status: ScaffolderTaskStatus; endedAt?: string; startedAt?: string; }; /** * A task event from the event stream * * @public */ export type TaskStream = { cancelled: boolean; loading: boolean; error?: Error; stepLogs: { [stepId in string]: string[]; }; completed: boolean; task?: ScaffolderTask; steps: { [stepId in string]: ScaffolderStep; }; output?: ScaffolderTaskOutput; }; /** * A hook to stream the logs of a task being processed * * @public */ export declare const useTaskEventStream: (taskId: string) => TaskStream;