import type { TaskReporter } from '@ms-cloudpack/task-reporter'; import type { TRPCClient } from '@trpc/client'; import type { AppRouter } from '../types/AppRouter.js'; export type CloudpackClient = TRPCClient & { close: () => Promise; }; /** * Creates a cloudpack client that can be used to communicate with the cloudpack server using trpc. */ export declare function createCloudpackClient(options: { /** API server URL (`ws:` or `wss:`) */ url: string; /** Task reporter for use on the server */ reporter?: TaskReporter; /** Triggered when a WebSocket connection is established */ onOpen?: () => void; }): Promise; //# sourceMappingURL=createCloudpackClient.d.ts.map