UNPKG

615 BTypeScriptView Raw
1import { Config } from '@stencil/core/internal';
2import type { PackageJSON } from './types';
3export declare const toLowerCase: (str: string) => string;
4export declare const dashToPascalCase: (str: string) => string;
5export declare function sortBy<T>(array: T[], prop: (item: T) => string): T[];
6export declare function normalizePath(str: string): string;
7export declare function relativeImport(pathFrom: string, pathTo: string, ext?: string): string;
8export declare function isRelativePath(path: string): boolean | "";
9export declare function readPackageJson(config: Config, rootDir: string): Promise<PackageJSON>;