import { ResolvedEntryFileReference, UnresolvedContext } from "@powerlines/core"; import { Entry } from "@storm-software/build-tools/types"; import { resolveOptions as resolveOptions$1 } from "@storm-software/tsup"; import { Options as Options$1 } from "tsup"; //#region src/tsup.d.ts declare const DEFAULT_OPTIONS: Partial; /** * Resolves the entry options for [tsup](https://github.com/egoist/tsup). * * @param context - The build context. * @param entryPoints - The entry points to resolve. * @returns The resolved entry options. */ declare function resolveEntry(context: TContext, entryPoints: ResolvedEntryFileReference[] | string[]): Entry; /** * Resolves the options for [tsup](https://github.com/egoist/tsup). * * @param context - The build context. * @returns The resolved options. */ declare function resolveOptions(context: TContext): Parameters[0]; /** * A Tsup configuration function that integrates Powerlines into the build process. * * @see https://tsup.egoist.dev/#/config * * @example * ```ts * // tsup.config.ts * import withPowerlines from "@powerlines/unplugin/tsup"; * * export default withPowerlines({ * entry: ["src/index.ts"], * format: ["cjs", "esm"], * dts: true, * sourcemap: true, * clean: true, * }); * * ``` * * @param options - The Tsup options to merge with the Powerlines configuration. * @returns The merged Tsup configuration options. */ declare function withPlugin(options: Options$1): Options$1; //#endregion export { DEFAULT_OPTIONS, withPlugin as default, withPlugin, resolveEntry, resolveOptions }; //# sourceMappingURL=tsup.d.mts.map