export declare function packageNameOf(path: string): string; /** * @param map - Key for RegExp source, value for replacement * * @return Key for replacement, value for RegExp */ export declare function patternOf(map: Record): Record | undefined; export declare function currentModulePath(): string | undefined; export declare function packageOf(path?: string): { path: string; meta: Record; } | undefined; /** * Get configuration of a Package from * `package.json`, `.${name}.json` or `.${name}.yml` in `process.cwd()` * * (`process.env.NODE_ENV` will affect the result) */ export declare function configOf(name: string): Record; export declare const stringifyEnv: (data: Record) => string; export declare function saveEnv(newData: Record, filePath: string): Promise>;