import { $t as RunId, An as RetryPolicySpec, Fn as BinaryStorageReadResult, Gn as ExecutionContextFactory, In as BinaryStorageStatResult, Jt as ParentExecutionRef, Kn as HumanTaskActor, Mt as MutableRunData, Nn as BinaryBody, Nt as NodeActivationId, Pn as BinaryStorage, Qi as NodeId, Qt as RunDataSnapshot, R as RunTestContext, Rn as BinaryStorageWriteResult, Un as ExecutionBinaryService, Wn as ExecutionContext, Wr as ExecutionTelemetryFactory, Wt as NodeOutputs, Y as TypeToken, Yn as HumanTaskSubject, Yt as PersistedRunPolicySnapshot, Zt as RunDataFactory, ar as NodeExecutionContext, bt as BinaryAttachment, dr as NodeResolver, ir as NodeBinaryAttachmentService, jt as JsonValue, lr as NodeExecutionStatePublisher, mi as CostTrackingTelemetryFactory, ta as WorkflowId, tn as RunnableNodeConfig, vi as CollectionsContext, wt as Item, zi as CredentialSessionService } from "./agentMcpTypes-BHX4RQCC.cjs"; //#region src/execution/CredentialResolverFactory.d.ts declare class CredentialResolverFactory { private readonly credentialSessions; constructor(credentialSessions: CredentialSessionService); create(workflowId: WorkflowId, nodeId: NodeId, config?: NodeExecutionContext["config"]): NodeExecutionContext["getCredential"]; } //#endregion //#region src/contracts/humanTaskStoreTypes.d.ts type HumanTaskStatus = "pending" | "decided" | "timed_out" | "auto_accepted" | "cancelled"; interface HumanTaskRecord { readonly id: string; readonly runId: string; readonly workflowId: string; readonly workspaceId?: string; readonly nodeId: string; readonly activationId: string; readonly itemIndex: number; readonly status: HumanTaskStatus; readonly channel: string; readonly subject: HumanTaskSubject; readonly metadata: Record; readonly decisionSchemaJson: string; readonly decisionSchemaHash: string; readonly onTimeout: "halt" | "auto-accept"; readonly deliveryRef?: JsonValue; readonly decision?: JsonValue; readonly decidedAt?: Date; readonly decidedBy?: HumanTaskActor; readonly resumeTokenHash: string; readonly expiresAt: Date; readonly createdAt: Date; } interface HumanTaskStore { create(record: HumanTaskRecord): Promise; findById(taskId: string): Promise; findByResumeTokenHash(tokenHash: string): Promise; findPendingForWorkspace(workspaceId: string): Promise>; findAllPending(): Promise>; markDecided(args: { taskId: string; decision: JsonValue; decidedBy: HumanTaskActor; decidedAt: Date; }): Promise; markTimedOut(taskId: string): Promise; markAutoAccepted(taskId: string): Promise; markCancelled(taskId: string): Promise; cancelPendingForRun(runId: string): Promise; } declare const HumanTaskStoreToken: TypeToken; //#endregion //#region src/contracts/hitlSeamTypes.d.ts interface HitlResumeTokenSignerSeam { sign(args: { taskId: string; expiresAt: Date; schemaHash: string; }): string; hashToken(token: string): string; } interface HitlTimeoutJobSchedulerSeam { enqueueTimeoutJob(args: { taskId: string; expiresAt: Date; }): Promise; } declare const HitlResumeTokenSignerToken: TypeToken; declare const HitlTimeoutJobSchedulerToken: TypeToken; declare const HitlWorkspaceIdToken: TypeToken; //#endregion //#region src/binaries/UnavailableBinaryStorage.d.ts declare class UnavailableBinaryStorage implements BinaryStorage { readonly driverName = "unavailable"; write(): Promise; openReadStream(): Promise; stat(): Promise<{ exists: false; }>; delete(): Promise; deleteMany(): Promise; listByPrefix(): Promise>; } //#endregion //#region src/binaries/DefaultExecutionBinaryServiceFactory.d.ts declare class DefaultExecutionBinaryService implements ExecutionBinaryService { private readonly storage; private readonly workflowId; private readonly runId; private readonly now; constructor(storage: BinaryStorage, workflowId: WorkflowId, runId: RunId, now: () => Date); forNode(args: { nodeId: NodeId; activationId: NodeActivationId; }): NodeBinaryAttachmentService; openReadStream(attachment: BinaryAttachment): Promise; getBytes(attachment: BinaryAttachment, maxBytes?: number): Promise; getText(attachment: BinaryAttachment, maxBytes?: number): Promise; getJson(attachment: BinaryAttachment, maxBytes?: number): Promise; } //#endregion //#region src/execution/asyncSleeper.types.d.ts interface AsyncSleeper { sleep(ms: number): Promise; } //#endregion //#region src/execution/DefaultAsyncSleeper.d.ts declare class DefaultAsyncSleeper implements AsyncSleeper { sleep(ms: number): Promise; } //#endregion //#region src/execution/DefaultExecutionContextFactory.d.ts declare class DefaultExecutionContextFactory implements ExecutionContextFactory { private readonly binaryStorage; private readonly telemetryFactory; private readonly costTrackingFactory; private readonly currentDate; private readonly collections?; private readonly nodeResolver?; private readonly telemetryDecoratorFactory; constructor(binaryStorage?: BinaryStorage, telemetryFactory?: ExecutionTelemetryFactory, costTrackingFactory?: CostTrackingTelemetryFactory, currentDate?: () => Date, collections?: CollectionsContext | undefined, nodeResolver?: NodeResolver | undefined); create(args: { runId: RunId; workflowId: WorkflowId; parent?: ParentExecutionRef; policySnapshot?: PersistedRunPolicySnapshot; subworkflowDepth: number; engineMaxNodeActivations: number; engineMaxSubworkflowDepth: number; data: RunDataSnapshot; nodeState?: NodeExecutionStatePublisher; telemetry?: ExecutionContext["telemetry"]; getCredential(slotKey: string): Promise; testContext?: RunTestContext; }): ExecutionContext; } //#endregion //#region src/execution/InProcessRetryRunner.d.ts declare class InProcessRetryRunner { private readonly sleeper; constructor(sleeper: AsyncSleeper); run(policy: RetryPolicySpec | undefined, work: () => Promise, shouldRetry?: (error: unknown) => boolean, warn?: (message: string) => void): Promise; private static delayAfterFailureMs; private static normalizePolicy; private static clampMaxAttempts; private static assertPositiveInt; private static assertNonNegativeFinite; private static assertMultiplier; } //#endregion //#region src/execution/ItemExprResolver.d.ts declare class ItemExprResolver { resolveConfigForItem>(ctx: NodeExecutionContext, item: Item, itemIndex: number, items: ReadonlyArray): Promise>; } //#endregion //#region src/execution/RunnableOutputBehaviorResolver.d.ts type RunnableOutputBehavior = Readonly<{ keepBinaries: boolean; mergeJson: boolean; }>; declare class RunnableOutputBehaviorResolver { resolve(config: RunnableNodeConfig): RunnableOutputBehavior; private isKeepBinariesEnabled; private isMergeJsonEnabled; } //#endregion //#region src/runStorage/InMemoryBinaryStorageRegistry.d.ts declare class InMemoryBinaryStorage implements BinaryStorage { readonly driverName = "memory"; private readonly values; write(args: { storageKey: string; body: BinaryBody; }): Promise; openReadStream(storageKey: string): Promise; stat(storageKey: string): Promise; delete(storageKey: string): Promise; deleteMany(storageKeys: ReadonlyArray): Promise; listByPrefix(prefix: string): Promise>; } //#endregion //#region src/runStorage/InMemoryRunDataFactory.d.ts declare class InMemoryRunDataFactory implements RunDataFactory { create(initial?: Record): MutableRunData; } //#endregion export { HumanTaskRecord as _, ItemExprResolver as a, HumanTaskStoreToken as b, DefaultAsyncSleeper as c, UnavailableBinaryStorage as d, HitlResumeTokenSignerSeam as f, HitlWorkspaceIdToken as g, HitlTimeoutJobSchedulerToken as h, RunnableOutputBehaviorResolver as i, AsyncSleeper as l, HitlTimeoutJobSchedulerSeam as m, InMemoryBinaryStorage as n, InProcessRetryRunner as o, HitlResumeTokenSignerToken as p, RunnableOutputBehavior as r, DefaultExecutionContextFactory as s, InMemoryRunDataFactory as t, DefaultExecutionBinaryService as u, HumanTaskStatus as v, CredentialResolverFactory as x, HumanTaskStore as y }; //# sourceMappingURL=InMemoryRunDataFactory-D2U9azmZ.d.cts.map