import { type TSConfckParseResult } from 'tsconfck'; import type { CompilerOptions, TypeAcquisition } from 'typescript'; export declare const defaultTSConfig: TSConfig; export type frameworkWithTSSettings = 'vue' | 'react' | 'preact' | 'solid-js'; export declare const presets: Map; type TSConfigResult = Promise<(TSConfckParseResult & T) | 'invalid-config' | 'missing-config' | 'unknown-error'>; /** * Load a tsconfig.json or jsconfig.json is the former is not found * @param root The root directory to search in, defaults to `process.cwd()`. * @param findUp Whether to search for the config file in parent directories, by default only the root directory is searched. */ export declare function loadTSConfig(root: string | undefined, findUp?: boolean): Promise>; export declare function updateTSConfigForFramework(target: TSConfig, framework: frameworkWithTSSettings): TSConfig; export type StripEnums> = { [K in keyof T]: T[K] extends boolean ? T[K] : T[K] extends string ? T[K] : T[K] extends object ? T[K] : T[K] extends Array ? T[K] : T[K] extends undefined ? undefined : any; }; export interface TSConfig { compilerOptions?: StripEnums; compileOnSave?: boolean; extends?: string; files?: string[]; include?: string[]; exclude?: string[]; typeAcquisition?: TypeAcquisition; } export {};