import { UnpluginExecutionOptions, UnpluginFactory } from "./types.mjs"; import { UnpluginFactoryDecorator, UnpluginFactoryOptions } from "./unplugin.mjs"; import { ExecutionContext } from "@powerlines/core"; //#region src/farm.d.ts /** * Creates a Farm plugin factory that generates a plugin instance. * * @see https://farmjs.dev/plugins/writing-plugins * * @example * ```ts * // farm.config.ts * import { createFarmFactory } from "@powerlines/unplugin/farm"; * * const powerlinesPlugin = createFarmFactory({ name: "example-app", ... }); * * export default defineConfig({ * plugins: [powerlinesPlugin()], * }); * * ``` * * @param options - The options to create the plugin factory with. * @param decorate - A function to decorate the plugin options with additional properties or hooks. This can be used to add custom behavior to the plugin instance, such as additional hooks or configuration options. The function receives the generated plugin options and should return an object containing any additional properties or hooks to be merged into the final plugin options. * @returns A function that generates a Farm plugin instance when called. The generated plugin will invoke the Powerlines API hooks during the build process, allowing you to integrate Powerlines into your Farm build. */ declare function createFarmFactory(options?: Omit, decorate?: UnpluginFactoryDecorator): UnpluginFactory>; /** * A Farm plugin that will invoke the Powerlines API hooks during the build process. * * @see https://farmjs.dev/plugins/writing-plugins * * @example * ```ts * // farm.config.ts * import powerlines from "@powerlines/unplugin/farm"; * import { defineConfig } from "@farmfe/core"; * * export default defineConfig({ * plugins: [powerlines({ name: "example-app", ... })], * }); * * ``` */ declare const farm: (options?: UnpluginExecutionOptions | undefined) => import("@farmfe/core").JsPlugin; //#endregion export { createFarmFactory, farm as default }; //# sourceMappingURL=farm.d.mts.map