/// <reference types="node" />
import * as net from 'net';
interface Options {
    readable?: boolean;
    writable?: boolean;
    error?: boolean;
}
interface Callback {
    (err?: Error | null, data?: any): void;
}
export default function eos(stream: net.Socket, opts?: Options, callback?: Callback): () => void;
export {};
