/** Same-origin Health v1 endpoint for `lisa ui`. */
import * as http from "node:http";
import { readLatestHealthResult, runPersistedHealth } from "../health/index.js";
/** Health boundaries injectable by endpoint and browser tests. */
export interface UiHealthDependencies {
    readonly readLatest: typeof readLatestHealthResult;
    readonly runPersisted: typeof runPersistedHealth;
}
/**
 * Build one project-bound Health endpoint with a coalesced run boundary.
 * The closure is the only place the UI server's resolved project directory is
 * retained; request data can never select another target.
 * @param destDir - Server-bound project root
 * @param dependencies - Optional Health storage/run boundaries
 * @returns Bound Health request handler
 */
export declare function createUiHealthHandler(destDir: string, dependencies?: Partial<UiHealthDependencies>): (request: http.IncomingMessage, response: http.ServerResponse) => void;
//# sourceMappingURL=ui-health.d.ts.map