import Version from '../../scope/models/version'; import ModelComponent from '../../scope/models/model-component'; import Scope from '../../scope/scope'; import Component from '../component'; import { InvalidComponent } from '../component/consumer-component'; import { BitId, BitIds } from '../../bit-id'; import BitMap from '../bit-map/bit-map'; import Consumer from '../consumer'; import { ComponentOrigin } from '../bit-map/component-map'; export declare type ObjectsList = Promise<{ [componentId: string]: Version; }>; export declare type ListScopeResult = { id: BitId; currentlyUsedVersion?: string | null | undefined; remoteVersion?: string; deprecated?: boolean; }; export default class ComponentsList { consumer: Consumer; scope: Scope; bitMap: BitMap; _fromFileSystem: { [cacheKey: string]: Component[]; }; _fromObjectsIds: BitId[]; _modelComponents: ModelComponent[]; _invalidComponents: InvalidComponent[]; _modifiedComponents: Component[]; constructor(consumer: Consumer); getModelComponents(): Promise; getFromObjects(): Promise; getAuthoredAndImportedFromFS(): Promise; listModifiedComponents(load?: boolean): Promise>; listOutdatedComponents(): Promise; newModifiedAndAutoTaggedComponents(): Promise; authoredAndImportedComponents(): Promise; idsFromObjects(): Promise; listNewComponents(load?: boolean): Promise; listCommitPendingOfAllScope(version: string, includeImported?: boolean): Promise<{ tagPendingComponents: BitId[]; warnings: string[]; }>; listCommitPendingComponents(): Promise; listExportPendingComponentsIds(): Promise; listNonNewComponentsIds(): Promise; updateIdsFromModelIfTheyOutOfSync(ids: BitIds): Promise; listExportPendingComponents(): Promise; listAutoTagPendingComponents(): Promise; idsFromBitMap(origin?: string): BitId[]; getFromFileSystem(origin?: string): Promise; listInvalidComponents(): Promise; getFromBitMap(origin?: ComponentOrigin): BitIds; getPathsForAllFilesOfAllComponents(origin?: ComponentOrigin, absolute?: boolean): string[]; listScope(showRemoteVersion: boolean, includeNested: boolean, namespacesUsingWildcards?: string): Promise; static listLocalScope(scope: Scope, namespacesUsingWildcards?: string): Promise; static sortComponentsByName(components: T): T; static filterComponentsByWildcard(components: T, idsWithWildcard: string[] | string): T; static getUniqueComponents(components: Component[]): Component[]; listComponentsByIdsWithWildcard(idsWithWildcard: string[]): BitId[]; }