///
import * as http from 'node:http';
import start from './server/start.js';
type Request = http.RequestOptions & {
body?: any;
params?: object;
};
type requestRes = {
res: http.IncomingMessage;
data: unknown;
};
/**
* Send a `http(s)` request
*
* Defaults to `GET` method
*/
export declare function request(url: string, options?: Request): Promise;
/** Sends a `GET` request */
export declare function get(url: string, options?: Request): Promise;
/** Sends a `POST` request */
export declare function post(url: string, options?: Request): Promise;
/** Sends a `PUT` request */
export declare function put(url: string, options?: Request): Promise;
/** Sends a `PATCH` request */
export declare function patch(url: string, options?: Request): Promise;
/** Sends a `DELETE` request */
declare function _delete(url: string, options?: Request): Promise;
export { _delete as delete };
export { start };
declare const _default: {
request: typeof request;
get: typeof get;
post: typeof post;
put: typeof put;
patch: typeof patch;
delete: typeof _delete;
start: typeof start;
};
export default _default;
export type * as Events from './events';