// Type definitions for S3rver
// Project: https://github.com/jamhall/s3rver
// Definitions by: David Broder-Rodgers
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///
import * as http from "http";
declare class S3rver {
constructor(options: S3rverOptions)
setPort(port: number): S3rver;
setHostname(hostname: string): S3rver;
setDirectory(directory: string): S3rver;
setSilent(silent: boolean): S3rver;
setIndexDocument(indexDocument: string): S3rver;
setErrorDocument(errorDocument: string): S3rver;
run(callback: (error: Error, hostname: string, port: number, directory: string) => void): http.Server;
}
interface S3rverOptions {
port?: number;
hostname?: string;
silent?: boolean;
indexDocument?: string;
errorDocument?: string;
directory: string;
}
declare namespace S3rver {}
export = S3rver;