import { CommandStructureInCommandSet, CommandNameInCommandSet, CommandSetStructure } from "../schema/command/command-set-structure"; import { CommandRegistry } from "../command/command-registry"; import { CommandSocketRequestMessage, CommandSocketResponseMessage } from "../schema/message/command-socket-message"; import { CommandSocketIdentity } from "../schema/command-socket-identity"; import { BuiltinCommandSet } from "../builtin/builtin-command-set"; import { ISocket } from "../socket/i-socket"; import { CommandSocketEvents } from "./command-socket-events"; import { CommandSocketState } from "./command-socket-state"; import { CommandStructureParameterType, CommandStructureReturnType } from "../schema/command/command-structure"; export declare type FullCommandSet = CS & BuiltinCommandSet; declare type ParameterOf = CommandNameInCommandSet> = CommandStructureParameterType>; declare type ReturnTypeOf = CommandNameInCommandSet> = CommandStructureReturnType>; export declare abstract class CommandSocket { static readonly ID_LENGTH: number; private static readonly BUILTIN_COMMANDS; private socket; private state; private id; private commandRegistry; private messageType; private outstandingRequests; private events; private metadata; constructor(socket: ISocket, commandRegistry?: CommandRegistry, metadata?: Partial); rawRequest>>(command: CommandName, params: ParameterOf, CommandName>): Promise, CommandName>>>; invoke>>(command: CommandName, params: ParameterOf, CommandName>): Promise, CommandName>>; ping(): Promise; close(): Promise; protected handleMessage(data: any): void; protected handleRequest(request: CommandSocketRequestMessage, timeReceived: number): Promise; protected handleResponse(response: CommandSocketResponseMessage, timeReceived: number): void; getID(): string; getMetadata(): Partial; getCommandRegistry(): CommandRegistry; getSocketIdentity(): Promise; getState(): CommandSocketState; getEvents(): CommandSocketEvents; } export {};