import { UnresolvedContext } from "@powerlines/core"; import { GetDependencyConfigResult } from "@powerlines/core/plugin-utils"; import { Format } from "@storm-software/build-tools/types"; import { Format as Format$1, UserConfig as UserConfig$1 } from "tsdown"; import { UserConfig as UserConfig$2 } from "tsdown/config"; //#region src/tsdown.d.ts /** * Get the {@link ResolveConfig.external | external} and {@link ResolveConfig.noExternal | noExternal} dependencies for the build configuration. * * @param context - The build context. * @returns The dependency configuration. */ declare function getDependencyConfig(context: TContext): GetDependencyConfigResult; declare const DEFAULT_OPTIONS: Partial; /** * Resolves the entry options for [tsdown](https://github.com/rolldown/tsdown). * * @param formats - The formats to resolve. * @returns The resolved entry options. */ declare function resolveFormat(formats?: Format | Format[]): Format$1[]; /** * Resolves the entry options for [tsdown](https://github.com/rolldown/tsdown). * * @param formats - The formats to resolve. * @returns The resolved entry options. */ declare function resolveFromFormat(formats?: Format$1 | Format$1[]): Format[]; /** * Resolves the options for [tsdown](https://github.com/rolldown/tsdown). * * @param context - The build context. * @returns The resolved options. */ declare function resolveOptions(context: TContext): UserConfig$1; /** * A Tsdown configuration function that integrates Powerlines into the build process. * * @see https://github.com/rolldown/tsdown * * @example * ```ts * // tsdown.config.ts * import withPowerlines from "@powerlines/unplugin/tsdown"; * * export default withPowerlines({ * entry: ["src/index.ts"], * format: ["cjs", "esm"], * dts: true, * sourcemap: true, * clean: true, * }); * * ``` * * @param options - The Tsdown options to merge with the Powerlines configuration. * @returns The merged Tsdown configuration options. */ declare function plugin(options?: UserConfig$2): UserConfig$2; //#endregion export { DEFAULT_OPTIONS, plugin as default, plugin, getDependencyConfig, resolveFormat, resolveFromFormat, resolveOptions }; //# sourceMappingURL=tsdown.d.mts.map