import { TranslationStore } from "../i18n/types.mjs";
import { RenderedTemplates } from "../email/types.mjs";
import loadConfigFile from "../config/load-config-file.mjs";
import { ZodType } from "zod";

//#region src/libs/compile/load-build-project.d.ts
type LoadConfigResult = Awaited<ReturnType<typeof loadConfigFile>>;
type PreparedLoadConfigResult = LoadConfigResult & {
  translationStore: TranslationStore;
};
type LoadBuildProjectResult = {
  configPath: string;
  loaded: PreparedLoadConfigResult;
  emailTemplates?: RenderedTemplates;
};
/**
 * Centralises the build-time Lucid bootstrap steps so CLI and integrations can
 * resolve the same config, env and generated side effects without duplicating
 * the setup sequence in each host.
 */
declare const loadBuildProject: (props?: {
  configPath?: string;
  silent?: boolean;
  validateEnv?: boolean;
  generateTypes?: boolean;
  loadEmailTemplates?: boolean; /** Collects local config imports for development watchers. */
  collectConfigDependencies?: boolean;
  envSchema?: ZodType;
  configureLucidPath?: string;
  prepareRuntime?: boolean;
}) => Promise<LoadBuildProjectResult>;
//#endregion
export { LoadBuildProjectResult, loadBuildProject as default };
//# sourceMappingURL=load-build-project.d.mts.map