+
+/**
+ * An object holding the task execution response promise resolve/reject callbacks.
+ *
+ * @typeParam Response - Type of execution response. This can only be structured-cloneable data.
+ * @internal
+ */
+export interface PromiseResponseWrapper<Response = unknown> {
+ /**
+ * Resolve callback to fulfill the promise.
+ */
+ readonly resolve: (value: Response | PromiseLike<Response>) => void
+ /**
+ * Reject callback to reject the promise.
+ */
+ readonly reject: (reason?: unknown) => void
+ /**
+ * The worker node key executing the task.
+ */
+ readonly workerNodeKey: number
+}
+
+export type Writable<T> = { -readonly [P in keyof T]: T[P] }