///
import { RequestListener } from "node:http";
export interface ClientConfig {
root: string;
target: string;
mode: "production" | "development";
files: List;
publicDir: string | undefined;
sourceMap: boolean | undefined;
}
export interface ListOptions {
root: string;
src: string;
}
export interface ListPage {
path?: string;
serverPath?: string;
}
export interface List {
pages: Record;
notFound?: ListPage;
app?: string;
document?: string;
}
export declare function list(options: ListOptions): Promise;
export interface BuildOptions extends ListOptions {
base?: string;
sourceMap?: boolean;
publicDir?: string;
client?: {
target?: string;
outDir?: string;
};
server?: {
target?: string;
outDir?: string;
};
}
/**
* Build client and server compatible bundles.
*/
export declare function build(options: BuildOptions): Promise;
export interface DevOptions extends ListOptions {
target?: string;
publicDir?: string;
}
/**
* Context for the dev server requests.
*/
export declare type DevServerContext = unknown;
/**
* Create a local dev environment with HMR and React Refresh support.
*/
export declare function dev(options: DevOptions): Promise;