import { Children } from "@alloy-js/core"; import { GeneratedDocument, GeneratorConfigObject, OutputConfig, UserConfig } from "@power-plant/core"; //#region src/generate.d.ts /** * Execute Alloy-js template components through a Power Plant execution context. * * @remarks * Creates an execution context via `execute`, then renders the Alloy-js template components with `render`. Use this as the top-level entry point; use `render` when already inside a running generator. * * @example * ```tsx * import { generate } from "@power-plant/alloy-js/generate"; * * await generate(<> ... ); * ``` * * @param template - The Alloy-js template components to render. * @param config - A generator configuration object. * @param options - Engine options for the execution context. * @returns A promise that resolves when generation is complete. */ declare function generate, "generator"> = Omit>, "generator">, TReturns = TGeneratorConfig["output"] extends OutputConfig ? TOutputReturns : any>(template: Children, config?: TGeneratorConfig, options?: UserConfig & TOptions): Promise; //#endregion export { generate }; //# sourceMappingURL=generate.d.cts.map