import { ComponentInterface } from "./ComponentInterface"; import { Plugin } from "./Plugin"; import { Error } from "./Error"; import { Binary } from "./Binary"; import { Source } from "./Source"; /** * @class */ export declare class BuildRequest { private readonly _component; private readonly _plugin; private readonly _binaries; private readonly _dependencies; private readonly _errors; /** * @constructor * @param component * @param plugin */ constructor(component: ComponentInterface, plugin: Plugin); /** * Returns the component of the build request. */ readonly component: ComponentInterface; /** * Returns the plugin of the build request. */ readonly plugin: Plugin; /** * Returns the binaries built by the build request. */ readonly binaries: Binary[]; /** * Returns the dependencies that were involved in the build of the binaries. */ readonly dependencies: Source[]; /** * Returns the errors that were catch during the building of the binaries. */ readonly errors: Error[]; /** * Returns the entry of the build request. */ readonly entry: string; /** * Returns the output of the build request. */ readonly output: string; /** * Convenient accessor that returns a promise that resolves to the source of the build request component. */ readonly source: Promise; /** * Adds a dependency to the build request. * * @param {Source} value */ addDependency(value: Source): void; /** * Adds a binary to the build request. * * @param {Binary} value */ addBinary(value: Binary): void; /** * Adds an error to the build request. * * @param {Error} value */ addError(value: Error): void; }