UNPKG

2.3 kBTypeScriptView Raw
1/// <reference types="node" />
2import { Readable, Stream } from 'stream';
3import lazystream from 'lazystream';
4import pumpify from 'pumpify';
5import { BuildTargetDescriptor } from './buildTargets';
6import { ComponentType } from './componentTargets';
7import { DiagnosticCategory, DiagnosticHandler } from './diagnostics';
8import ProjectConfiguration from './ProjectConfiguration';
9export { DiagnosticCategory };
10export declare function generateBuildId(): string;
11export declare function loadProjectConfig({ hasNativeComponents, onDiagnostic, fileName, }: {
12 hasNativeComponents?: boolean | undefined;
13 onDiagnostic?: DiagnosticHandler | undefined;
14 fileName?: string | undefined;
15}): import("./ProjectConfiguration").AppProjectConfiguration | import("./ProjectConfiguration").ClockProjectConfiguration;
16export declare function buildComponent({ projectConfig, component, onDiagnostic, }: {
17 projectConfig: ProjectConfiguration;
18 component: ComponentType;
19 onDiagnostic?: DiagnosticHandler;
20}): lazystream.Readable | undefined;
21export declare function buildDeviceResources(projectConfig: ProjectConfiguration, { resourceFilterTag }: BuildTargetDescriptor, onDiagnostic?: DiagnosticHandler): pumpify;
22export declare function buildDeviceComponents({ projectConfig, buildId, onDiagnostic, }: {
23 projectConfig: ProjectConfiguration;
24 buildId: string;
25 onDiagnostic?: DiagnosticHandler;
26}): NodeJS.ReadableStream;
27export declare function buildCompanion({ projectConfig, buildId, onDiagnostic, }: {
28 projectConfig: ProjectConfiguration;
29 buildId: string;
30 onDiagnostic?: DiagnosticHandler;
31}): lazystream.Readable | undefined;
32export declare function buildAppPackage({ projectConfig, buildId, existingDeviceComponents, onDiagnostic, }: {
33 projectConfig: ProjectConfiguration;
34 buildId: string;
35 existingDeviceComponents?: Readable;
36 onDiagnostic?: DiagnosticHandler;
37}): pumpify;
38export declare function buildProject({ nativeDeviceComponentPaths, onDiagnostic, }: {
39 nativeDeviceComponentPaths?: string[];
40 onDiagnostic?: DiagnosticHandler;
41}): pumpify;
42export declare function build({ dest, onDiagnostic, nativeDeviceComponentPaths, }?: {
43 dest?: Stream;
44 nativeDeviceComponentPaths?: string[];
45 onDiagnostic?: DiagnosticHandler;
46}): Promise<void>;