///
///
import { DepGraph } from 'dependency-graph';
import type { PackageJson } from 'type-fest';
import type { CoreConfigs } from './types.mjs';
export declare const MOODLENET_CORE_DEV_LOCAL_FOLDER_PACKAGES: boolean;
export declare const isDevEnv: boolean;
type Reboot = () => unknown;
type Shutdown = () => unknown;
type RootImport = (module: string) => Promise;
type Configs = {
pkgs: {
[pkgName in string]: any;
};
};
type Ignites = {
rootDir: string;
rootImport: RootImport;
rootRequire: NodeRequire;
rootPkgJson: PackageJson;
rootPkgLockJson: {
dependencies: Record;
}>;
};
configs: Configs;
reboot: Reboot;
shutdown: Shutdown;
isDevEnv: boolean;
};
export declare const pkgDepGraph: DepGraph;
export declare function reboot(): void;
export declare function getIgnites(): Ignites;
export declare function shutdown(): Promise;
export declare function getConfigs(): Configs;
export declare function getConfig(pkgName: string): any;
export declare function getCoreConfigs(): CoreConfigs;
export declare let PHASE: 'init' | 'starting' | 'running' | 'stopping';
export default function ignite(ignites: Ignites): Promise;
export declare function stopAll(): Promise;
export declare function stopAllAndExit(): Promise;
export {};
//# sourceMappingURL=ignite.d.mts.map