import { type ApiEventLog, type CompleteTaskBodyV2Input, type EphemeralEventDispatcherRequestBody, type FailTaskBodyInput, type GetRunOptionsWithTaskDetails, type GetRunsOptions, type InvokeOptions, type RegisterSourceEventV2, type RegisterTriggerBodyV2, type RunTaskBodyInput, type ScheduleMetadata, type SendEvent, type SendEventOptions, type StatusUpdate, type TriggerSource, type UpdateTriggerSourceBodyV2, type UpdateWebhookBody } from "@systemfsoftware/trigger.dev_core-v2"; import { type LogLevel } from "@systemfsoftware/trigger.dev_core-backend"; import { z } from "zod"; import { KeyValueStoreClient } from "./store/keyValueStoreClient.js"; export type ApiClientOptions = { apiKey?: string; apiUrl?: string; logLevel?: LogLevel; }; export type EndpointRecord = { id: string; name: string; url: string; }; export type HttpSourceRecord = { id: string; key: string; managed: boolean; url: string; status: "PENDING" | "ACTIVE" | "INACTIVE"; secret?: string; data?: any; }; export type RunRecord = { id: string; jobId: string; callbackUrl: string; event: ApiEventLog; }; export declare class UnknownVersionError extends Error { constructor(version: string); } export declare class ApiClient { #private; constructor(options: ApiClientOptions); registerEndpoint(options: { url: string; name: string; }): Promise; runTask(runId: string, task: RunTaskBodyInput, options?: { cachedTasksCursor?: string; }): Promise>>; status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>; error: z.ZodNullable>; context: z.ZodNullable>>; name: z.ZodString; id: z.ZodString; style: z.ZodNullable; variant: z.ZodOptional; }, "strip", z.ZodTypeAny, { style: "normal" | "minimal"; variant?: string | undefined; }, { style: "normal" | "minimal"; variant?: string | undefined; }>>>; icon: z.ZodNullable>; noop: z.ZodBoolean; startedAt: z.ZodNullable>; completedAt: z.ZodNullable>; delayUntil: z.ZodNullable>; description: z.ZodNullable>; properties: z.ZodNullable; imageUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }>, "many">>>; outputProperties: z.ZodNullable; imageUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }>, "many">>>; output: z.ZodNullable>>; parentId: z.ZodNullable>; operation: z.ZodNullable>; callbackUrl: z.ZodNullable>; childExecutionMode: z.ZodNullable>>; idempotencyKey: z.ZodString; attempts: z.ZodNumber; forceYield: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }>; cachedTasks: z.ZodOptional; noop: z.ZodDefault; output: z.ZodNullable>>; parentId: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; noop: boolean; idempotencyKey: string; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; idempotencyKey: string; noop?: boolean | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }>, "many">; cursor: z.ZodOptional; }, "strip", z.ZodTypeAny, { tasks: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; noop: boolean; idempotencyKey: string; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }[]; cursor?: string | undefined; }, { tasks: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; idempotencyKey: string; noop?: boolean | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }[]; cursor?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { task: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }; cachedTasks?: { tasks: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; noop: boolean; idempotencyKey: string; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }[]; cursor?: string | undefined; } | undefined; }, { task: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }; cachedTasks?: { tasks: { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; id: string; idempotencyKey: string; noop?: boolean | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; }[]; cursor?: string | undefined; } | undefined; }>; }, z.ZodObject<{ params: z.ZodNullable>>; status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>; error: z.ZodNullable>; context: z.ZodNullable>>; name: z.ZodString; id: z.ZodString; style: z.ZodNullable; variant: z.ZodOptional; }, "strip", z.ZodTypeAny, { style: "normal" | "minimal"; variant?: string | undefined; }, { style: "normal" | "minimal"; variant?: string | undefined; }>>>; icon: z.ZodNullable>; noop: z.ZodBoolean; startedAt: z.ZodNullable>; completedAt: z.ZodNullable>; delayUntil: z.ZodNullable>; description: z.ZodNullable>; properties: z.ZodNullable; imageUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }>, "many">>>; outputProperties: z.ZodNullable; imageUrl: z.ZodOptional>; }, "strip", z.ZodTypeAny, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }, { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }>, "many">>>; output: z.ZodNullable>>; parentId: z.ZodNullable>; operation: z.ZodNullable>; callbackUrl: z.ZodNullable>; childExecutionMode: z.ZodNullable>>; idempotencyKey: z.ZodString; attempts: z.ZodNumber; forceYield: z.ZodNullable>; }, "strip", z.ZodTypeAny, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }, { status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }>>>; completeTask(runId: string, id: string, task: CompleteTaskBodyV2Input): Promise<{ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }>; failTask(runId: string, id: string, body: FailTaskBodyInput): Promise<{ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED"; name: string; id: string; noop: boolean; idempotencyKey: string; attempts: number; params?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; error?: string | null | undefined; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; style?: { style: "normal" | "minimal"; variant?: string | undefined; } | null | undefined; icon?: string | null | undefined; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; delayUntil?: Date | null | undefined; description?: string | null | undefined; properties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; outputProperties?: { label: string; text: string; url?: string | undefined; imageUrl?: string[] | undefined; }[] | null | undefined; output?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; parentId?: string | null | undefined; operation?: string | null | undefined; callbackUrl?: string | null | undefined; childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined; forceYield?: boolean | null | undefined; }>; sendEvent(event: SendEvent, options?: SendEventOptions): Promise<{ payload: ((string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[]) & (string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[] | undefined)) | null; name: string; id: string; timestamp: Date; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; deliverAt?: Date | null | undefined; deliveredAt?: Date | null | undefined; cancelledAt?: Date | null | undefined; }>; sendEvents(events: SendEvent[], options?: SendEventOptions): Promise<{ payload: ((string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[]) & (string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[] | undefined)) | null; name: string; id: string; timestamp: Date; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; deliverAt?: Date | null | undefined; deliveredAt?: Date | null | undefined; cancelledAt?: Date | null | undefined; }[]>; cancelEvent(eventId: string): Promise<{ payload: ((string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[]) & (string | number | boolean | { [key: string]: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson; } | import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson[] | undefined)) | null; name: string; id: string; timestamp: Date; context?: import("@systemfsoftware/trigger.dev_core-v2").DeserializedJson | undefined; deliverAt?: Date | null | undefined; deliveredAt?: Date | null | undefined; cancelledAt?: Date | null | undefined; }>; cancelRunsForEvent(eventId: string): Promise<{ cancelledRunIds: string[]; failedToCancelRunIds: string[]; }>; updateStatus(runId: string, id: string, status: StatusUpdate): Promise<{ key: string; label: string; history: { label?: string | undefined; state?: "loading" | "success" | "failure" | undefined; data?: Record | undefined; }[]; data?: Record | undefined; state?: "loading" | "success" | "failure" | undefined; }>; updateSource(client: string, key: string, source: UpdateTriggerSourceBodyV2): Promise; updateWebhook(key: string, webhookData: UpdateWebhookBody): Promise; registerTrigger(client: string, id: string, key: string, payload: RegisterTriggerBodyV2, idempotencyKey?: string): Promise; registerSchedule(client: string, id: string, key: string, payload: ScheduleMetadata): Promise<{ id: string; schedule: { options: { cron: string; }; type: "cron"; accountId?: string | undefined; metadata?: any; } | { options: { seconds: number; }; type: "interval"; accountId?: string | undefined; metadata?: any; }; active: boolean; metadata?: any; }>; unregisterSchedule(client: string, id: string, key: string): Promise<{ ok: boolean; }>; getAuth(client: string, id: string): Promise<{ type: "oauth2" | "apiKey"; accessToken: string; scopes?: string[] | undefined; additionalFields?: Record | undefined; } | undefined>; getEvent(eventId: string): Promise<{ name: string; id: string; updatedAt: Date; runs: { status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE"; id: string; startedAt?: Date | null | undefined; completedAt?: Date | null | undefined; }[]; createdAt: Date; }>; getRun(runId: string, options?: GetRunOptionsWithTaskDetails): Promise<{ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE"; id: string; startedAt: Date | null; completedAt: Date | null; updatedAt: Date | null; tasks: import("@systemfsoftware/trigger.dev_core-v2").RunTaskWithSubtasks[]; statuses: { key: string; label: string; history: { label?: string | undefined; state?: "loading" | "success" | "failure" | undefined; data?: Record | undefined; }[]; data?: Record | undefined; state?: "loading" | "success" | "failure" | undefined; }[]; output?: any; nextCursor?: string | undefined; }>; cancelRun(runId: string): Promise<{ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE"; id: string; startedAt: Date | null; completedAt: Date | null; updatedAt: Date | null; tasks: import("@systemfsoftware/trigger.dev_core-v2").RunTaskWithSubtasks[]; statuses: { key: string; label: string; history: { label?: string | undefined; state?: "loading" | "success" | "failure" | undefined; data?: Record | undefined; }[]; data?: Record | undefined; state?: "loading" | "success" | "failure" | undefined; }[]; output?: any; nextCursor?: string | undefined; }>; getRunStatuses(runId: string): Promise<{ statuses: { key: string; label: string; history: { label?: string | undefined; state?: "loading" | "success" | "failure" | undefined; data?: Record | undefined; }[]; data?: Record | undefined; state?: "loading" | "success" | "failure" | undefined; }[]; run: { status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE"; id: string; output?: any; }; }>; getRuns(jobSlug: string, options?: GetRunsOptions): Promise<{ runs: { status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD" | "EXECUTING" | "WAITING_TO_CONTINUE" | "WAITING_TO_EXECUTE"; id: string; startedAt: Date | null; completedAt: Date | null; updatedAt: Date | null; }[]; nextCursor?: string | undefined; }>; invokeJob(jobId: string, payload: any, options?: InvokeOptions): Promise<{ id: string; }>; cancelRunsForJob(jobId: string): Promise<{ cancelledRunIds: string[]; failedToCancelRunIds: string[]; }>; createEphemeralEventDispatcher(payload: EphemeralEventDispatcherRequestBody): Promise<{ id: string; }>; get store(): KeyValueStoreClient; } type VersionedResponseBodyMap = { [key: string]: z.ZodTypeAny; }; type VersionedResponseBody = { [TVersion in keyof TVersions]: { version: TVersion; body: z.infer; }; }[keyof TVersions] | { version: "unversioned"; body: z.infer; }; export {}; //# sourceMappingURL=apiClient.d.ts.map