///
import { Options } from './create-handler';
import type { EdgeContext } from '@edge-runtime/vm';
import type { ListenOptions } from 'net';
interface ServerOptions extends Options {
}
export interface EdgeRuntimeServer {
/**
* The server URL.
*/
url: string;
/**
* Waits for all the current effects and closes the server.
*/
close: () => Promise;
/**
* Waits for all current effects returning their result.
*/
waitUntil: () => Promise;
}
/**
* This helper will create a handler based on the given options and then
* immediately run a server on the provided port. If there is no port, the
* server will use a random one.
*/
export declare function runServer(options: ListenOptions & ServerOptions): Promise;
export {};