/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { JsonAstObject, JsonObject, json, workspaces } from '@angular-devkit/core'; export declare const workspaceSchemaPath: string; export declare class AngularWorkspace { private workspace; readonly filePath: string; readonly basePath: string; constructor(workspace: workspaces.WorkspaceDefinition, filePath: string); get extensions(): Record; get projects(): workspaces.ProjectDefinitionCollection; getCli(): Record; getProjectCli(projectName: string): Record; } export declare function getWorkspace(level?: 'local' | 'global'): Promise; export declare function createGlobalSettings(): string; export declare function getWorkspaceRaw(level?: 'local' | 'global'): [JsonAstObject | null, string | null]; export declare function validateWorkspace(data: JsonObject): Promise; export declare function getProjectByCwd(workspace: AngularWorkspace): string | null; export declare function getConfiguredPackageManager(): Promise; export declare function migrateLegacyGlobalConfig(): boolean; export declare function getSchematicDefaults(collection: string, schematic: string, project?: string | null): Promise<{}>; export declare function isWarningEnabled(warning: string): Promise;