import type { BuerliState, DrawingID } from '@buerli.io/core'; import { AwvNodeClient } from './io/AwvNodeClient'; declare type ClientFactory = (drawingId: DrawingID) => AwvNodeClient; export declare class Globals { static factory: ClientFactory; static clientCache: Record; } /** * Initializes the Buerli API with the given factory and options * @param source can be a URL string or a client factory function. * If it is a URL string, the factory will be a SocketIOClient or WASMClient depending on the URL protocol (http/s or ws). * If it is a factory function, it requires a AwvNodeClient interface and will be used to create the client. */ export declare const init: (source: ClientFactory, options?: Partial) => void; export {};