import { Type } from "typebox"; export declare const TickEventSchema: Type.TObject<{ ts: Type.TInteger; }>; export declare const ShutdownEventSchema: Type.TObject<{ reason: Type.TString; restartExpectedMs: Type.TOptional; }>; export declare const ConnectParamsSchema: Type.TObject<{ minProtocol: Type.TInteger; maxProtocol: Type.TInteger; client: Type.TObject<{ id: Type.TEnum<["openclaw-android", "cli", "openclaw-control-ui", "fingerprint", "gateway-client", "openclaw-ios", "openclaw-macos", "node-host", "openclaw-probe", "test", "openclaw-tui", "webchat", "webchat-ui"]>; displayName: Type.TOptional; version: Type.TString; platform: Type.TString; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TEnum<["backend", "cli", "node", "probe", "test", "ui", "webchat"]>; instanceId: Type.TOptional; }>; caps: Type.TOptional>; commands: Type.TOptional>; permissions: Type.TOptional>; pathEnv: Type.TOptional; role: Type.TOptional; scopes: Type.TOptional>; device: Type.TOptional>; auth: Type.TOptional; bootstrapToken: Type.TOptional; deviceToken: Type.TOptional; password: Type.TOptional; }>>; locale: Type.TOptional; userAgent: Type.TOptional; }>; export declare const HelloOkSchema: Type.TObject<{ type: Type.TLiteral<"hello-ok">; protocol: Type.TInteger; server: Type.TObject<{ version: Type.TString; connId: Type.TString; }>; features: Type.TObject<{ methods: Type.TArray; events: Type.TArray; }>; snapshot: Type.TObject<{ presence: Type.TArray; ip: Type.TOptional; version: Type.TOptional; platform: Type.TOptional; deviceFamily: Type.TOptional; modelIdentifier: Type.TOptional; mode: Type.TOptional; lastInputSeconds: Type.TOptional; reason: Type.TOptional; tags: Type.TOptional>; text: Type.TOptional; ts: Type.TInteger; deviceId: Type.TOptional; roles: Type.TOptional>; scopes: Type.TOptional>; instanceId: Type.TOptional; }>>; health: Type.TAny; stateVersion: Type.TObject<{ presence: Type.TInteger; health: Type.TInteger; }>; uptimeMs: Type.TInteger; configPath: Type.TOptional; stateDir: Type.TOptional; sessionDefaults: Type.TOptional; }>>; authMode: Type.TOptional, Type.TLiteral<"token">, Type.TLiteral<"password">, Type.TLiteral<"trusted-proxy">]>>; updateAvailable: Type.TOptional>; }>; canvasHostUrl: Type.TOptional; auth: Type.TObject<{ deviceToken: Type.TOptional; role: Type.TString; scopes: Type.TArray; issuedAtMs: Type.TOptional; deviceTokens: Type.TOptional; issuedAtMs: Type.TInteger; }>>>; }>; policy: Type.TObject<{ maxPayload: Type.TInteger; maxBufferedBytes: Type.TInteger; tickIntervalMs: Type.TInteger; }>; }>; export declare const ErrorShapeSchema: Type.TObject<{ code: Type.TString; message: Type.TString; details: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>; export declare const RequestFrameSchema: Type.TObject<{ type: Type.TLiteral<"req">; id: Type.TString; method: Type.TString; params: Type.TOptional; }>; export declare const ResponseFrameSchema: Type.TObject<{ type: Type.TLiteral<"res">; id: Type.TString; ok: Type.TBoolean; payload: Type.TOptional; error: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>>; }>; export declare const EventFrameSchema: Type.TObject<{ type: Type.TLiteral<"event">; event: Type.TString; payload: Type.TOptional; seq: Type.TOptional; stateVersion: Type.TOptional>; }>; export declare const GatewayFrameSchema: Type.TUnion<[Type.TObject<{ type: Type.TLiteral<"req">; id: Type.TString; method: Type.TString; params: Type.TOptional; }>, Type.TObject<{ type: Type.TLiteral<"res">; id: Type.TString; ok: Type.TBoolean; payload: Type.TOptional; error: Type.TOptional; retryable: Type.TOptional; retryAfterMs: Type.TOptional; }>>; }>, Type.TObject<{ type: Type.TLiteral<"event">; event: Type.TString; payload: Type.TOptional; seq: Type.TOptional; stateVersion: Type.TOptional>; }>]>;