import type { ProjectStructure } from './project.js'; export type AbsolutePath = string & { readonly __brand: 'AbsolutePath'; }; export type BrowserInput = 'chrome' | 'edge' | 'chromium' | 'firefox' | 'brave' | 'opera' | 'vivaldi' | 'yandex' | 'waterfox' | 'librewolf' | 'zen' | 'floorp' | 'chromium-based' | 'gecko-based' | 'firefox-based' | 'safari' | 'webkit-based' | 'chromium-emulator' | undefined; export type NormalizedBrowser = 'chrome' | 'edge' | 'chromium' | 'firefox' | 'brave' | 'opera' | 'vivaldi' | 'yandex' | 'waterfox' | 'librewolf' | 'zen' | 'floorp' | 'chromium-based' | 'gecko-based' | 'safari' | 'webkit-based' | 'chromium-emulator'; export declare function asAbsolute(p: string): AbsolutePath; export declare function toPosixPath(p: string): string; export declare function rememberAskedPath(asked: string, real: string): void; export declare function asAskedPath(target: string): string; export declare function collapseHomeDir(value: string): string; export declare function relativeToDir(target: string, base: string): string | null; export declare function displayPath(target: string, base?: string): string; export declare function getDirs(struct: ProjectStructure): { manifestDir: AbsolutePath; packageJsonDir: AbsolutePath; }; export declare function needsInstall(packageJsonDir: AbsolutePath, workspaceRoot?: string): boolean; export declare function isKnownBrowserName(name: unknown): boolean; export declare function configBrowserOrThrow(configBrowser: unknown, command: string): BrowserInput | undefined; export declare function browserOptionOrThrow(browser: unknown): BrowserInput; export declare function normalizeBrowser(browser: BrowserInput, chromiumBinary?: string, geckoBinary?: string, safariBinary?: string): NormalizedBrowser; export declare function getDistPath(packageJsonDir: AbsolutePath, browser: string): AbsolutePath; export declare function getBuildDistPath(packageJsonDir: AbsolutePath, browser: string, outDir?: string): AbsolutePath; export declare function computePreviewOutputPath(struct: ProjectStructure, browser: string, explicitOutputPath?: string): AbsolutePath; export declare function devtoolsEngineFor(browser: unknown): 'chrome' | 'edge' | 'chromium' | 'firefox' | 'safari';