import { EnvVars } from '@bmd-studio/genstack-environment'; import { Service } from './index'; export declare const buildServices: () => Promise; export declare const importServices: () => Promise; export declare const execServices: (commandName: string, commandArgv: string[]) => Promise; /** * Construct an object of environment variables for a specific service by loading all shared * environment variables and checking the ones that are specific for the requested service. * @param service The service entry to construct the environment variable set for */ export declare const getServiceEnv: (service: Service) => EnvVars; /** * Get all the active services based on a set of requested services via the `arguments`, * requested services via `CLI command flags` and the `service config`. * This allows for customization of what service to build, start or stop. * @param requestedServices Array of service names * @param requestedOnly True when any requested services from CLI arguments or `requestedServices` parameter should filter the result */ export declare const getCurrentServices: () => Service[]; /** * Get the subset of service names that is requested for this command. */ export declare const getRequestedServices: () => string[]; /** * Get all the service definitions from the application config. */ export declare const getProjectServices: () => Service[]; /** * Get the root of a service that is defined for this project. * @param service The service. * @param args Optional deconstructed subdirectories. */ export declare const getServiceRoot: (service: Service, ...args: string[]) => string; /** * Get the root of a service that is build from an existing repository. * @param service The service. * @param args Optional deconstructed subdirectories. */ export declare const getServiceRepoRoot: (service: Service, ...args: string[]) => string; /** * Get the root to the application service build directory * @param args Optional deconstructed subdirectories. */ export declare const getServiceBuildPath: (service: Service) => string;