import { PublishedNodePackage, NodePackage } from './npm-registry'; import { Command } from 'commander'; import { Settings } from '../settings/settings-protocol'; import { Framework } from '@celljs/frameworks/lib/detector/detector-protocol'; export declare const CELL_COMPONENT_SUFFIX = "-component"; export type ApplicationLog = (message?: any, ...optionalParams: any[]) => void; export declare class ApplicationConfigOptions { readonly targets: string[]; readonly program: Command; } export declare class ApplicationPackageOptions { readonly dev: boolean; readonly mode: string[]; readonly runtime?: string; readonly projectPath: string; readonly log?: ApplicationLog; readonly error?: ApplicationLog; readonly settings?: Settings; readonly propsDir?: string; readonly propsFile?: string; readonly framework?: Framework; } export type ApplicationModuleResolver = (modulePath: string) => string; export interface Props { [key: string]: any; cell: any; } export interface Component extends Props { name: any; runtime?: string; mode?: string[]; /** * Frontend related properties. */ frontend: Props; /** * Backend specific properties. */ backend: Props; configFiles: string[]; } export declare class Module { name: string; path: string; componentName: string; } export declare class ComponentPackage { readonly raw: PublishedNodePackage & Partial; constructor(raw: PublishedNodePackage & Partial); get name(): string; get version(): string; get description(): string; get cellComponent(): Component | undefined; get modulePath(): string; getAuthor(): string; } export interface RawComponentPackage extends PublishedNodePackage { cellComponent: Component; } export declare namespace RawComponentPackage { function is(pck: NodePackage | undefined): pck is RawComponentPackage; } //# sourceMappingURL=package-protocol.d.ts.map