import { EventDispatcher } from '../events/EventDispatcher'; import { IDataInput } from '../utils/IDataInput'; import { IDataOutput } from '../utils/IDataOutput'; import { ByteArray } from '../utils/ByteArray'; /** * Copyright 2014 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ export declare class Socket extends EventDispatcher implements IDataInput, IDataOutput { static classInitializer: any; static classSymbols: string[]; static instanceSymbols: string[]; constructor(host?: string, port?: number); timeout: number; connect: (host: string, port: number) => void; close: () => void; get bytesAvailable(): number; get connected(): boolean; get objectEncoding(): number; set objectEncoding(version: number); get endian(): string; set endian(type: string); get bytesPending(): number; readBytes(bytes: ByteArray, offset?: number, length?: number): void; writeBytes(bytes: ByteArray, offset?: number, length?: number): void; writeBoolean(value: boolean): void; writeByte(value: number): void; writeShort(value: number): void; writeInt(value: number): void; writeUnsignedInt(value: number): void; writeFloat(value: number): void; writeDouble(value: number): void; writeMultiByte(value: string, charSet: string): void; writeUTF(value: string): void; writeUTFBytes(value: string): void; readBoolean(): boolean; readByte(): number; readUnsignedByte(): number; readShort(): number; readUnsignedShort(): number; readInt(): number; readUnsignedInt(): number; readFloat(): number; readDouble(): number; readMultiByte(length: number, charSet: string): string; readUTF(): string; readUTFBytes(length: number): string; flush(): void; writeObject(object: any): void; readObject(): any; internalGetSecurityErrorMessage(host: any, port: any): string; internalConnect(host: any, port: any): void; didFailureOccur(): boolean; } //# sourceMappingURL=Socket.d.ts.map