import * as plugins from './typedsocket.plugins.js'; export type TTypedSocketSide = 'server' | 'client'; export declare class TypedSocket { /** * creates a typedsocket server * note: this will fail in browser environments as server libs are not bundled. */ static createServer(typedrouterArg: plugins.typedrequest.TypedRouter, smartexpressServerArg?: any): Promise; static createClient(typedrouterArg: plugins.typedrequest.TypedRouter, serverUrlArg: string, aliasArg?: string): Promise; static useWindowLocationOriginUrl: () => string; side: TTypedSocketSide; typedrouter: plugins.typedrequest.TypedRouter; get eventSubject(): import("rxjs").Subject; private postMethod; private socketServerOrClient; constructor(sideArg: TTypedSocketSide, typedrouterArg: plugins.typedrequest.TypedRouter, postMethodArg: plugins.typedrequest.IPostMethod, socketServerOrClientArg: plugins.smartsocket.Smartsocket | plugins.smartsocket.SmartsocketClient); addTag(nameArg: T['name'], payloadArg: T['payload']): void; createTypedRequest(methodName: T['method'], targetConnection?: plugins.smartsocket.SocketConnection): plugins.typedrequest.TypedRequest; /** * returns all matching target connection * @param asyncFindFuncArg * @returns */ findAllTargetConnections(asyncFindFuncArg: (connectionArg: plugins.smartsocket.SocketConnection) => Promise): Promise; /** * returns a single target connection by returning the first one of all matching ones * @param asyncFindFuncArg * @returns */ findTargetConnection(asyncFindFuncArg: (connectionArg: plugins.smartsocket.SocketConnection) => Promise): Promise; findAllTargetConnectionsByTag(keyArg: TTag['name'], payloadArg?: TTag['payload']): Promise; findTargetConnectionByTag(keyArg: TTag['name'], payloadArg?: TTag['payload']): Promise; stop(): Promise; }