import type { RpcClient } from "./types"; export type { RpcClient }; /** * Creates an RPC client that connects to a Worker or SharedWorker. * * @remarks * This function establishes a connection with the worker and returns a proxy object * that mirrors the worker's API. * * @template Config - The type of the worker's API configuration. * @param worker - The Worker or SharedWorker instance to connect to. * @returns The typed RPC client. * * @example * ```ts * const worker = new Worker("./worker.js"); * const client = createClient(worker); * await client.someMethod(); * ``` */ export declare function createClient(worker: SharedWorker | Worker): RpcClient;