import { HubMessage, IHubProtocol } from "./IHubProtocol"; import { ILogger } from "./ILogger"; import { TransferFormat } from "./ITransport"; /** Implements the JSON Hub Protocol. */ export declare class JsonHubProtocol implements IHubProtocol { /** @inheritdoc */ readonly name: string; /** @inheritdoc */ readonly version: number; /** @inheritdoc */ readonly transferFormat: TransferFormat; /** * Creates an array of {@link @microsoft/signalr.HubMessage} objects from the * specified serialized representation. * * @param {string} input A string containing the serialized representation. * @param {ILogger} logger A logger that will be used to log messages that * occur during parsing. */ parseMessages(input: string, logger: ILogger): HubMessage[]; /** * Writes the specified {@link @microsoft/signalr.HubMessage} to a string and * returns it. * * @param {HubMessage} message The message to write. * @returns {string} A string containing the serialized representation of the message. */ writeMessage(message: HubMessage): string; private isInvocationMessage; private isStreamItemMessage; private isCompletionMessage; private assertNotEmptyString; } //# sourceMappingURL=JsonHubProtocol.d.ts.map