import type { IncomingMessage, ServerResponse } from 'node:http'; /** * Resolve the directory that holds the bundled web-ui assets at runtime. * * Layout when published (npm tarball): * dist/web/server.js ← this module compiled * dist/web/static/index.html ← copied by the cli package's prebuild step * * Layout in the source tree (pnpm dev): * packages/web-ui/dist/index.html ← built by `pnpm --filter @orckit/web-ui build` * src/web/static.ts ← this module * * We try the published layout first (sibling `static/` next to this file), * then fall back to the monorepo layout. If neither exists, callers should * skip serving the dashboard and continue without crashing — the user may * just not have built the UI yet. */ export declare function resolveStaticDir(): string | null; /** * Serve a single static asset under `root`. Rejects path traversal, falls * back to `index.html` for paths that don't resolve to a file so the SPA * router owns navigation. Returns true if a response was sent. */ export declare function serveStaticAsset(req: IncomingMessage, res: ServerResponse, root: string): Promise; //# sourceMappingURL=static.d.ts.map