/**
 * Locating the built browser viewer on disk.
 *
 * The viewer is a static Vite build that ships inside the package, exactly like
 * `schema.sql` and the tree-sitter grammars: emitted into `dist/viewer/`,
 * copied wholesale by `scripts/build-bundle.sh`, packed by
 * `scripts/pack-npm.sh`. So it is found the same way `db/index.ts` finds
 * `schema.sql` — relative to `__dirname`, never to `process.cwd()`, which is
 * whatever directory the user happened to be standing in.
 *
 * `dist/viewer`, NOT `dist/ui`: `src/ui/` is the engine's TERMINAL ui and tsc
 * already compiles it to `dist/ui/`. See `ui/vite.config.ts`.
 */
import { VIEWER_PATH_ENV } from './constants';
export { VIEWER_PATH_ENV };
/**
 * The viewer build is missing — the package was assembled without it, or the
 * repo was built with `tsc` alone. Carries user-facing remediation rather than
 * a stack trace, because the CLI prints `.message` verbatim.
 */
export declare class ViewerMissingError extends Error {
    constructor(searched: readonly string[]);
}
/**
 * Candidate locations for the viewer, most-specific first.
 *
 * 1. The `CODEGRAPH_VIEWER_PATH` override.
 * 2. `<__dirname>/../viewer` — the shipped layout (`dist/ui-server/` →
 *    `dist/viewer/`).
 * 3. `<__dirname>/../../dist/viewer` — running the TypeScript straight out of
 *    `src/` (vitest, tsx), where `__dirname` is `src/ui-server/`.
 */
export declare function viewerDirCandidates(): string[];
/**
 * Resolve the directory holding the built viewer.
 *
 * @throws {ViewerMissingError} when no candidate contains an `index.html`.
 */
export declare function resolveViewerDir(): string;
//# sourceMappingURL=assets.d.ts.map