import type { IncomingMessage, Server, ServerResponse } from 'http'; export interface LivereloadServerOptions { basedir: string; port: number; host: string; urlHostname?: string; onSSE: (res: ServerResponse) => void; } export type LivereloadRequestHandler = (req: IncomingMessage, res: ServerResponse) => boolean; /** * Creates a request handler for http.createServer() that handles livereload requests. * * @param options - Options for the livereload server. * @returns - A request handler for handling livereload requests. */ export declare function createLivereloadRequestHandler(options: LivereloadServerOptions): Promise; /** * Creates a livereload server. * * @param options - Options for the livereload server. * @returns - The server instance. */ export declare function createLivereloadServer(options: LivereloadServerOptions): Promise; //# sourceMappingURL=server.d.ts.map