import * as vite from 'vite'; /** * TypeScript file extension regex * Match .ts / .cts / .mts extensions with an optional ?query suffix. * Reject .tsx — and any other `.ts…` extension like .tsrx — via * a negative-lookahead on a following ASCII letter, so only genuine TS * files pass. * * Previous form `/\.[cm]?(ts)[^x]?\??/` was intended to exclude `.tsx` * specifically (`[^x]?` = not-an-x), but the `?` quantifier also allows * zero characters, and any non-`x` letter was admitted — so `.tsrx` * and similar extensions matched by accident. */ export declare const TS_EXT_REGEX: RegExp; export interface TsConfigResolutionContext { root: string; isProd: boolean; isLib: boolean; } export declare function getTsConfigPath(root: string, tsconfig: string, isProd: boolean, isTest: boolean, isLib: boolean): string; export declare function createTsConfigGetter(tsconfigOrGetter?: string | (() => string)): () => string; export interface DepOptimizerOptions { tsconfig: string; isProd: boolean; jit: boolean; watchMode: boolean; isTest: boolean; isAstroIntegration: boolean; } export declare function createDepOptimizerConfig(opts: DepOptimizerOptions): { optimizeDeps: { rolldownOptions: Omit & { output?: Omit; }; include: string[]; exclude: string[]; } | { esbuildOptions: import("vite/types/internal/esbuildOptions.js").DepsOptimizerEsbuildOptions; include: string[]; exclude: string[]; }; resolve: { conditions: string[]; }; };