import { AsyncFileSystem, FileSystem } from './fs'; import { NowConfig } from './now-config'; import { PackageJson } from 'type-fest'; export type App = { /** * The parsed package.json */ package: Package; /** * SDK-specific configuration */ config: NowConfig; /** * Root directory of the app */ rootDir: string; }; export type Package = PackageJson & { name: string; version: string; now?: NowConfig; dependencies?: Record; devDependencies?: Record; }; export declare function parsePackageJsonAsync(rootDir: string, fs: AsyncFileSystem): Promise; export declare function parsePackageJson(rootDir: string, fs: FileSystem): Package; export declare function validateAppName(name: string | undefined): string | undefined; export declare function validateScopeName(name: string | undefined, requiredPrefix?: string | undefined): string | undefined;