import type { Operation } from "effection";
import type { Handler } from "./types.js";
export interface ServerInfo {
    hostname: string;
    port: number;
}
export interface ServerOptions {
    port?: number;
    handler: Handler<Request, Response>;
}
export declare const _driver: unique symbol;
export declare function useServer(options: ServerOptions): Operation<ServerInfo>;
export declare function drive(response: Response, operation: () => Operation<void>): Operation<Response>;
//# sourceMappingURL=server.d.ts.map