/// 
/// 
/// 
/// 
import { EventEmitter } from 'events';
import Stream from 'stream';
declare const Readable: typeof Stream.Readable;
interface Data {
    data: any;
    modified: boolean;
}
declare class RouteStream extends Readable {
    _data: any;
    _ended: boolean;
    modified: boolean;
    constructor(data: Data);
    _toBuffer(data: Buffer | object | string): Buffer | null;
    _read(): boolean;
}
declare class Router extends EventEmitter {
    routes: {
        [key: string]: Data | null;
    };
    constructor();
    list(): string[];
    format(path?: string): string;
    get(path: string): RouteStream;
    isModified(path: string): boolean;
    set(path: string, data: any): this;
    remove(path: string): this;
}
export = Router;