UNPKG

@teambit/workspace

Version:
44 lines (43 loc) 1.38 kB
import type { BundlerMain } from '@teambit/bundler'; import type { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component'; import type { UIRoot } from '@teambit/ui'; import type { GetBitMapComponentOptions } from '@teambit/legacy.bit-map'; import type { PathOsBased } from '@teambit/toolbox.path.path'; import type { Workspace } from './workspace'; export declare class WorkspaceUIRoot implements UIRoot { /** * workspace extension. */ private workspace; /** * bundler extension */ private bundler; constructor( /** * workspace extension. */ workspace: Workspace, /** * bundler extension */ bundler: BundlerMain); priority: boolean; get name(): string; get path(): string; get configFile(): string; buildOptions: { ssr: boolean; launchBrowserOnStart: boolean; prebundle: boolean; }; resolveAspects(runtimeName: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions): Promise<import("@teambit/aspect-loader").AspectDefinition[]>; resolvePattern(pattern: string): Promise<Component[]>; getConfig(): {}; /** * proxy to `workspace.componentDir()` */ componentDir(componentId: ComponentID, bitMapOptions?: GetBitMapComponentOptions, options?: { relative: boolean; }): PathOsBased; }