/** * Fetch the latest installable published version of a specific npm package. * Results are cached so repeated calls for the same package are free. * Throws when the registry is unreachable so scaffolds never emit broken * placeholder versions. */ export declare function getPackageVersion(packageName: string): string; /** * Rewrite the viewer's package.json so it works as a standalone project: * - Set the project name * - Replace workspace: protocol versions with the latest npm version * - Remove the .git directory if present */ export declare function fixPackageJson(targetDir: string, projectName: string): void; /** * Write a standalone tsconfig.json without monorepo references. */ export declare function fixTsConfig(targetDir: string): void; /** * Write a standalone vite.config.ts with WASM support. */ export declare function fixViteConfig(targetDir: string): void; /** * Apply all viewer-template fixups: package.json, tsconfig, vite config. */ export declare function fixViewerTemplate(targetDir: string, projectName: string): void;