import type { Plugin } from 'vite'; /** Options for {@link dts}. */ export interface DtsPluginOptions { /** Path to the `tsconfig` used for declaration emit, resolved against `process.cwd()`. @default 'tsconfig.build.json' */ readonly project?: string; /** Directory declarations are emitted into, resolved against `process.cwd()`. @default 'dist' */ readonly outDir?: string; /** Package providing the `bin/tsc` entry point to shell out to - swap in `'typescript-go'` for the native compiler alias. @default 'typescript' */ readonly compilerPackage?: string; } /** * Generates a library's type declarations via the consumer's own tsc (or * `typescript-go`). Copies hand-written `.d.ts` files tsc wouldn't emit; * watch builds add `--incremental` caching. Warns and no-ops if * `compilerPackage` can't be resolved. */ export declare function dts(options?: DtsPluginOptions): Plugin;