import { A as AnyActorDefinition, B as BaseActorDefinition, E as EventSchemaConfig, Q as QueueSchemaConfig, a as ActionContext, b as BeforeActionResponseContext, c as BeforeConnectContext, C as ConnectContext, d as CreateConnStateContext, e as CreateContext, f as CreateVarsContext, D as DestroyContext, g as DisconnectContext, M as MigrateContext, R as RequestContext, h as RunContext, S as SleepContext, i as StateChangeContext, W as WakeContext, j as WebSocketContext } from './config-BDdeBoxX.cjs'; export { k as ACTOR_CONTEXT_INTERNAL_SYMBOL, l as ActionInputSchemas, m as ActionSampleRates, n as ActionTraceSamplers, o as Actions, p as ActorConfig, q as ActorConfigInput, r as ActorConfigSchema, s as ActorContext, t as ActorContextOf, u as ActorCron, v as ActorCronEveryOptions, w as ActorCronSetOptions, x as ActorDefinition, y as ActorFork, z as ActorForkLink, F as ActorInspectorConfig, G as ActorInspectorConfigSchema, H as ActorKey, I as ActorKv, J as ActorLogger, K as ActorOptions, L as ActorOptionsInput, N as ActorOptionsSchema, O as ActorQuery, P as ActorQueue, T as ActorRun, U as ActorSchedule, V as ActorTracingOptions, X as ActorTypes, Y as ActorsSchema, Z as AnyActorInstance, _ as AnyClient, $ as AnyConn, a0 as AnyStaticActorDefinition, a1 as AnyStaticActorInstance, a2 as AuthIntent, a3 as BUILTIN_INSPECTOR_TAB_IDS, a4 as BaseActorInstance, a5 as BuiltinInspectorTabIdSchema, a6 as CONN_DRIVER_SYMBOL, a7 as CONN_STATE_MANAGER_SYMBOL, a8 as Client, a9 as Conn, aa as CronFire, ab as CronJobInfo, ac as CustomInspectorTabEntrySchema, ad as DEFAULT_SLEEP_GRACE_PERIOD, ae as DefineRunHandlerOptions, af as DocActorConfigSchema, ag as DocActorOptionsSchema, ah as DocConfigurePoolSchema, ai as DocEnvoyConfigSchema, aj as DocRegistryConfigSchema, ak as DocServerlessConfigSchema, al as DocSqliteConfigSchema, am as FetchHandler, an as GlobalActorOptions, ao as GlobalActorOptionsInput, ap as GlobalActorOptionsSchema, aq as HideInspectorTabEntrySchema, ar as InferEventArgs, as as InferSchemaMap, at as InspectorTabEntrySchema, au as InspectorUnsubscribe, av as InstanceActorOptions, aw as InstanceActorOptionsInput, ax as InstanceActorOptionsSchema, ay as QueueEnqueueAndWaitOptions, az as QueueFilterName, aA as QueueIterOptions, aB as QueueMessageOf, aC as QueueName, aD as QueueNextBatchOptions, aE as QueueNextOptions, aF as QueueResultMessageForName, aG as QueueTryNextBatchOptions, aH as QueueTryNextOptions, aI as QueueWaitOptions, aJ as RAW_STATE_SYMBOL, aK as Registry, aL as RegistryActors, aM as RegistryApplication, aN as RegistryConfig, aO as RegistryConfigInput, aP as RegistryConfigSchema, aQ as RegistryDeps, aR as RegistryListenOptions, aS as RegistryRoutes, aT as RunConfig, aU as RunConfigSchema, aV as RunControl, aW as RunInspectorConfig, aX as RunInspectorFactoryContext, aY as RunInspectorFactoryResult, aZ as RunInspectorKind, a_ as RunWithInactiveOptions, a$ as RuntimeKind, b0 as RuntimeKindSchema, b1 as ScheduledEventInfo, b2 as ScheduledFireInfo, b3 as ServerlessHandler, b4 as SqliteBackend, b5 as SqliteBackendSchema, b6 as SqliteConfig, b7 as SqliteConfigSchema, b8 as TestConfig, b9 as TestConfigSchema, ba as Type, bb as WasmRuntimeBindings, bc as WasmRuntimeConfig, bd as WasmRuntimeConfigSchema, be as WasmRuntimeInitInput, bf as WorkflowInspectorConfig, bg as WorkflowOutcome, bh as WorkflowSpan, bi as WorkflowStepOutcome, bj as WorkflowStepSpan, bk as actor, bl as buildActorNames, bm as createClientWithDriver, bn as defineRunHandler, bo as disposeRunInspector, bp as event, bq as getRunFunction, br as getRunInspectorConfig, bs as getRunMetadata, bt as isStaticActorDefinition, bu as isStaticActorInstance, bv as lookupInRegistry, bw as queue, bx as setup, by as test } from './config-BDdeBoxX.cjs'; export { E as Encoding, t as toUint8Array } from './utils-C6b0aYUM.cjs'; import { UniversalWebSocket } from '@rivetkit/virtual-websocket'; export { RivetCloseEvent, RivetEvent, RivetMessageEvent, UniversalWebSocket } from '@rivetkit/virtual-websocket'; import { A as AnyDatabaseProvider } from './config-CBTr4IhE.cjs'; export { R as ActorError, R as RivetError, a as RivetErrorLike, b as RivetErrorOptions, U as UserError, c as UserErrorOptions, n as noopNext } from './utils-3rsE0JvI.cjs'; import { WSContext } from 'hono/ws'; export { W as WorkflowBranchContextOf, a as WorkflowContextOf, b as WorkflowLoopContextOf, c as WorkflowStepContextOf } from './context-NzsxAAoN.cjs'; import 'zod/v4'; import '@rivetkit/rivetkit-wasm'; import 'zod'; import 'pino'; import './inspector/workflow.cjs'; import '@standard-schema/spec'; import '@rivetkit/engine-api-full'; import 'hono'; import 'hono/utils/http-status'; import '@rivetkit/workflow-engine'; /** * Headers that publics can send from public clients. * * Used for CORS. **/ declare const ALLOWED_PUBLIC_HEADERS: string[]; interface UniversalEvent { type: string; target?: any; currentTarget?: any; } interface UniversalMessageEvent extends UniversalEvent { data: string; lastEventId: string; origin: string; } interface UniversalErrorEvent extends UniversalEvent { message: string; filename?: string; lineno?: number; colno?: number; error?: any; } /** * Common EventSource interface that can be implemented by different EventSource-like classes * This is compatible with the standard EventSource API but allows for custom implementations */ interface UniversalEventSource { readonly CONNECTING: 0; readonly OPEN: 1; readonly CLOSED: 2; readonly readyState: 0 | 1 | 2; readonly url: string; readonly withCredentials: boolean; close(): void; addEventListener(type: string, listener: (event: any) => void): void; removeEventListener(type: string, listener: (event: any) => void): void; dispatchEvent(event: UniversalEvent): boolean; onopen?: ((event: UniversalEvent) => void) | null; onmessage?: ((event: UniversalMessageEvent) => void) | null; onerror?: ((event: UniversalErrorEvent) => void) | null; } type ActionContextOf = AD extends BaseActorDefinition ? ActionContext : never; type BeforeActionResponseContextOf = AD extends BaseActorDefinition ? BeforeActionResponseContext : never; type BeforeConnectContextOf = AD extends BaseActorDefinition ? BeforeConnectContext : never; type ConnectContextOf = AD extends BaseActorDefinition ? ConnectContext : never; type ConnContextOf = AD extends BaseActorDefinition ? ActionContext : never; type ConnInitContextOf = AD extends BaseActorDefinition ? BeforeConnectContext : never; /** @deprecated Connection state was deprecated in 3.0 and will be removed in a future version. Track live connections in `c.vars` from `onConnect` and `onDisconnect`, and store durable per-connection data in SQLite. See https://rivet.dev/actors/docs/deprecated/state#connection-state */ type CreateConnStateContextOf = AD extends BaseActorDefinition ? CreateConnStateContext : never; type CreateContextOf = AD extends BaseActorDefinition ? CreateContext : never; type CreateVarsContextOf = AD extends BaseActorDefinition ? CreateVarsContext : never; type DestroyContextOf = AD extends BaseActorDefinition ? DestroyContext : never; type DisconnectContextOf = AD extends BaseActorDefinition ? DisconnectContext : never; type MigrateContextOf = AD extends BaseActorDefinition ? MigrateContext : never; type RequestContextOf = AD extends BaseActorDefinition ? RequestContext : never; type RunContextOf = AD extends BaseActorDefinition ? RunContext : never; type SleepContextOf = AD extends BaseActorDefinition ? SleepContext : never; /** @deprecated Actor state was deprecated in 3.0 and will be removed in a future version. See https://rivet.dev/actors/docs/deprecated/state */ type StateChangeContextOf = AD extends BaseActorDefinition ? StateChangeContext : never; type WakeContextOf = AD extends BaseActorDefinition ? WakeContext : never; type WebSocketContextOf = AD extends BaseActorDefinition ? WebSocketContext : never; interface UpgradeWebSocketArgs { conn?: unknown; actor?: unknown; onRestore?: (ws: WSContext) => void; onOpen: (event: any, ws: WSContext) => void; onMessage: (event: any, ws: WSContext) => void; onClose: (event: any, ws: WSContext) => void; onError: (error: any, ws: WSContext) => void; } /** * InlineWebSocketAdapter creates two linked WebSocket objects: * - clientWs: for the client/proxy side (returned from openWebSocket) * - actorWs: for the actor side (passed via wsContext.raw) * * Each side's send() triggers the OTHER side's message event. */ declare class InlineWebSocketAdapter { #private; constructor(handler: UpgradeWebSocketArgs, options?: { restoring?: boolean; }); /** Get the client-side WebSocket (for proxy/client code) */ get clientWebSocket(): UniversalWebSocket; /** Get the actor-side WebSocket (passed to actor via wsContext.raw) */ get actorWebSocket(): UniversalWebSocket; /** * Dispatch a client->actor message with optional transport metadata. * * This is used by dynamic actor host bridges to preserve * `rivetMessageIndex` on hibernatable engine websocket paths. */ dispatchClientMessageWithMetadata(data: string | ArrayBufferLike | Blob | ArrayBufferView, rivetMessageIndex?: number): void; } export { ALLOWED_PUBLIC_HEADERS, ActionContext, type ActionContextOf, AnyActorDefinition, BaseActorDefinition, BeforeActionResponseContext, type BeforeActionResponseContextOf, BeforeConnectContext, type BeforeConnectContextOf, type ConnContextOf, type ConnInitContextOf, ConnectContext, type ConnectContextOf, CreateConnStateContext, type CreateConnStateContextOf, CreateContext, type CreateContextOf, CreateVarsContext, type CreateVarsContextOf, DestroyContext, type DestroyContextOf, DisconnectContext, type DisconnectContextOf, EventSchemaConfig, InlineWebSocketAdapter, MigrateContext, type MigrateContextOf, QueueSchemaConfig, RequestContext, type RequestContextOf, RunContext, type RunContextOf, SleepContext, type SleepContextOf, StateChangeContext, type StateChangeContextOf, type UniversalErrorEvent, type UniversalEvent, type UniversalEventSource, type UniversalMessageEvent, WakeContext, type WakeContextOf, WebSocketContext, type WebSocketContextOf };