import { AsyncActivityResultPending, type ActivityConstructor, type AnyActivity, type AsyncActivityCallbackAuth } from '@t4h.framework/core'; import type Type from 'typebox'; export type WorkflowRunActivityKind = 'sync' | 'async'; export type WorkflowRunActivityStatus = 'running' | 'fulfilled' | 'rejected'; export interface WorkflowRunActivityOptions { id?: string; status?: WorkflowRunActivityStatus; input?: unknown; output?: unknown; completedAt?: Date; createdAt?: Date; } export declare class WorkflowRunActivity { readonly id: string; readonly runId: string; readonly position: number; readonly type: string; readonly kind: WorkflowRunActivityKind; readonly status: WorkflowRunActivityStatus; readonly input: unknown; readonly output: unknown; readonly completedAt: Date | undefined; readonly createdAt: Date; constructor(runId: string, position: number, type: string, kind: WorkflowRunActivityKind, options?: WorkflowRunActivityOptions); static fromConstructor(runId: string, position: number, Activity: ActivityConstructor, options?: WorkflowRunActivityOptions): WorkflowRunActivity; } export type AsyncActivityPendingStatus = 'pending' | 'fulfilled' | 'rejected'; export interface WorkflowRunAsyncActivityPendingOptions { id?: string; previousId?: string; status?: AsyncActivityPendingStatus; schema?: Type.TSchema; timeoutAt?: Date; result?: unknown; payload?: unknown; auth?: AsyncActivityCallbackAuth; correlationKey?: string; lastCallbackId?: string; createdAt?: Date; updatedAt?: Date; } export declare class WorkflowRunAsyncActivityPending { readonly id: string; readonly activityId: string; readonly position: number; readonly previousId: string | undefined; readonly status: AsyncActivityPendingStatus; readonly schema: Type.TSchema | undefined; readonly timeoutAt: Date | undefined; readonly result: unknown; readonly payload: unknown; readonly auth: AsyncActivityCallbackAuth | undefined; readonly correlationKey: string | undefined; readonly lastCallbackId: string | undefined; readonly createdAt: Date; readonly updatedAt: Date; constructor(activityId: string, position: number, options?: WorkflowRunAsyncActivityPendingOptions); toResultPending(): AsyncActivityResultPending; }