import { ValueKind, BrsBoolean, BrsType, BrsValue, RoSocketAddress } from "..";
import { BrsComponent } from "./BrsComponent";
import { BrsSocket } from "../interfaces/IfSocket";
import * as net from "net";
export declare class RoStreamSocket extends BrsComponent implements BrsValue, BrsSocket {
    readonly kind = ValueKind.Object;
    readonly socket?: net.Socket;
    readonly identity: number;
    address?: RoSocketAddress;
    sendToAddress?: RoSocketAddress;
    ttl: number;
    reuseAddr: boolean;
    inline: boolean;
    sendBufferSize: number;
    recvBufferSize: number;
    sendTimeout: number;
    recvTimeout: number;
    errorCode: number;
    constructor();
    toString(parent?: BrsType): string;
    equalTo(other: BrsType): BrsBoolean;
    /** Puts the socket into the listen state. */
    private readonly listen;
    /** Checks whether if the listen() method has been successfully called on this socket. */
    private readonly isListening;
    /** Establishes a connection. */
    private readonly connect;
    /** Accepts an incoming connection */
    private readonly accept;
    /** Checks if the socket is connected */
    private readonly isConnected;
}
