import { CompilerContext } from "../../contexts/compiler.js"; import { Format } from "ts-vista"; import { SourceMap } from "rolldown"; /** * Preset options for `bundle` function. */ type PresetBundleOptions = { /** * Compiler context. */ context: CompilerContext; /** * Name of the CSS-in-JS package. */ packageName: string; /** * List of functions to be preprocessed. */ includedFunctions: readonly string[]; }; /** * User defined options for `bundle` function. */ type UserBundleOptions = { /** * Current working directory. */ cwd: string; /** * Array of packages/paths to include. * * Packages/paths in `include` option will be * overwritten by `exclude` option. */ include: readonly string[]; /** * Array of packages/paths to exclude. */ exclude: readonly string[]; /** * Dedicated tsconfig file to be used. */ tsconfigPath?: string; }; /** * Dynamic options for `bundle` function to bundle file. */ type DynamicBundleOptions = { /** * File to be bundled. */ file: string; /** * preprocessed entry code. */ code: string; }; /** * Options for `bundle` function. */ type BundleOptions = Format; /** * Result of `bundle` function. */ type BundleResult = { /** * Bundled code. */ code: string; /** * Source map. */ map: SourceMap | undefined; }; /** * Bundle function to bundle entry file for reference. */ declare const bundle: (options: BundleOptions) => Promise; export { type BundleOptions, type BundleResult, type DynamicBundleOptions, type PresetBundleOptions, type UserBundleOptions, bundle }; //# sourceMappingURL=index.d.ts.map