import type { ClientConfig } from "./worker/types"; /** * Event sent by the client to initialize the connection. */ export declare let INIT: import("./event").EventCreator; /** * Event sent by the worker to signal it is ready to receive messages. */ export declare let READY: import("./event").EventCreator; /** * Event sent by the worker containing the client configuration. * * @remarks * This configuration describes the available modules and functions exposed by the worker. */ export declare let CONFIG: import("./event").EventCreator>; /** * Structure representing a remote procedure call. */ type Call = { /** Unique identifier for the request. */ id: string; /** Path to the function being called (e.g., ["module", "func"]). */ path: Array; /** Arguments to pass to the function. */ args: Array; }; /** * Event sent by the client to invoke a function on the worker. */ export declare let REQUEST: import("./event").EventCreator; /** * Structure representing the response to a remote procedure call. */ type Reply = { id: string; resolve: unknown; reject: undefined; } | { id: string; resolve: undefined; reject: unknown; }; /** * Event sent by the worker with the result of a function call. */ export declare let REPLY: import("./event").EventCreator; /** * Payload for a subscription request. */ export type Subscribe = { /** The ID of the request to subscribe to. */ id: string; }; /** * Event sent to subscribe to an observable stream. */ export declare let SUBSCRIBE: import("./event").EventCreator; /** * Payload for an unsubscription request. */ export type Unsubscribe = { /** The ID of the request to unsubscribe from. */ id: string; }; /** * Event sent to unsubscribe from an observable stream. */ export declare let UNSUBSCRIBE: import("./event").EventCreator; /** * Payload for a published data item from a stream. */ type Publish = { /** The ID of the request this data belongs to. */ id: string; /** The data emitted by the stream. */ data: unknown; }; /** * Event sent by the worker when an observable stream emits data. */ export declare let PUBLISH: import("./event").EventCreator; export {};