import { Arrayable, BuildOptions, BunupPlugin, BunupPluginHooks, exports, injectStyles, unused } from "./shared/bunup-7a1vqtsp.js"; type CopyOptions = { /** Whether to follow symbolic links when copying files. */ followSymlinks?: boolean; /** Whether to exclude dotfiles (files starting with a dot) from being copied. */ excludeDotfiles?: boolean; /** Whether to override existing files. Default: true */ override?: boolean; /** * Behavior in watch mode: * - 'changed': Only copy files that have changed (default) * - 'always': Always copy all files on each build * - 'skip': Skip copying in watch mode */ watchMode?: "changed" | "always" | "skip"; }; type TransformContext = { /** The file content */ content: string | ArrayBuffer; /** The source file path */ path: string; /** The destination file path */ destination: string; /** Build options */ options: BuildOptions; }; type TransformResult = string | ArrayBuffer | { content: string | ArrayBuffer; filename: string; }; type TransformFunction = (context: TransformContext) => TransformResult | Promise; /** * A plugin that copies files and directories to the output directory. * * @warning When copying large files or directories, this may impact build performance. * Consider using symlinks for very large files when appropriate. * * @see https://bunup.dev/docs/builtin-plugins/copy */ declare function copy(pattern: Arrayable): BunupPlugin & CopyBuilder; declare class CopyBuilder { private _patterns; private _destination?; private _options?; private _transform?; private _fileCache; constructor(pattern: Arrayable); /** * Sets the destination directory or file path where files will be copied. * Relative to the output directory. */ to(destination: string): this; /** * Sets additional options for the copy operation. */ with(options: CopyOptions): this; /** * Transforms file contents during copy operation. * Useful for modifying files on the fly (e.g., replacing tokens, minifying, etc.) */ transform(fn: TransformFunction): this; get name(): string; get hooks(): BunupPluginHooks; private copyFileWithTransform; } import { BunPlugin } from "bun"; /** * A plugin that provides shims for Node.js globals and ESM/CJS interoperability. */ declare function shims(): BunPlugin; export { unused, shims, injectStyles, exports, copy };