import { Server } from "restify"; interface ServerOptions { serviceName: string; port: number; onUncaughtException?: (err: Error) => void; /** Legacy option to register routes the old way */ routes?: (server: Server) => void; maxParamLength?: number; } export declare const server: Server; export declare const closeServer: () => any; export declare function startServer({ serviceName, port, onUncaughtException, maxParamLength }: ServerOptions): Promise; export {};