import * as v from '../../shared/src/valita.ts'; import { ErrorKind } from './error-kind.ts'; declare const backoffBodySchema: v.ObjectType<{ kind: v.Type<"Rebalance" | "Rehome" | "ServerOverloaded">; message: v.Type; minBackoffMs: v.Optional; maxBackoffMs: v.Optional; reconnectParams: v.Optional>; }, undefined>; export declare const errorKindSchema: v.Type; export declare const errorBodySchema: v.UnionType<[v.ObjectType<{ kind: v.Type<"AuthInvalidated" | "ClientNotFound" | "InvalidConnectionRequest" | "InvalidConnectionRequestBaseCookie" | "InvalidConnectionRequestLastMutationID" | "InvalidConnectionRequestClientDeleted" | "InvalidMessage" | "InvalidPush" | "MutationFailed" | "MutationRateLimited" | "Unauthorized" | "VersionNotSupported" | "SchemaVersionNotSupported" | "Internal">; message: v.Type; }, undefined>, v.ObjectType<{ kind: v.Type<"Rebalance" | "Rehome" | "ServerOverloaded">; message: v.Type; minBackoffMs: v.Optional; maxBackoffMs: v.Optional; reconnectParams: v.Optional>; }, undefined>]>; export type BackoffBody = v.Infer; export type ErrorBody = v.Infer; export declare const errorMessageSchema: v.Type; export type ErrorMessage = ['error', ErrorBody]; export {}; //# sourceMappingURL=error.d.ts.map