import { z } from "zod"; import type { JsonObject, JsonValue } from "../json.js"; import type { SocketContract } from "../wire/contract.js"; /** Optional Zod validators for `static schemas`. Transformations are not applied. */ interface ActorSchemas { readonly contract?: SocketContract; readonly metadata?: z.ZodType; readonly incoming?: z.ZodType; readonly outgoing?: z.ZodType; readonly tag?: z.ZodType; } /** Initial snapshot of public `@Emittable` fields. */ interface ActorStateMessage { readonly type: "state"; readonly state: State; readonly version?: number; } /** Saved state update. Merge `changes` and delete fields listed in `removed`. */ interface ActorStateUpdate { readonly type: "state_update"; readonly changes: Partial; readonly removed: readonly string[]; readonly version: number; } declare function socketMetadata(value: unknown, schemas?: ActorSchemas): JsonValue; declare function incomingMessage(value: unknown, schemas?: ActorSchemas): JsonValue; declare function outgoingMessage(value: unknown, schemas?: ActorSchemas): JsonValue; declare function receivedMessage(value: unknown, schemas?: ActorSchemas): JsonValue; declare function socketTags(tags: readonly string[], schemas?: ActorSchemas): string[]; export { socketMetadata, incomingMessage, outgoingMessage, receivedMessage, socketTags }; export type { ActorSchemas, ActorStateMessage, ActorStateUpdate }; //# sourceMappingURL=socketValidation.d.ts.map