import type { TypeScriptDecoratorOptions } from "./bundler.js"; /** * Input for {@link readTypeScriptDecoratorOptions}. * * `configPath` is the root `tsconfig.json` to read. The two optional hooks let * a caller supply its own I/O: `readTextFile` replaces the default * `node:fs/promises` read, so a sandboxed or snapshot-backed caller can stay * inside its own boundary, and `resolveExtends` replaces the default Node * resolution of an `extends` specifier. */ export interface ReadTypeScriptDecoratorOptionsInput { /** Root TypeScript configuration to read. A missing file resolves to both flags off. */ readonly configPath: string; /** Read one configuration file. Defaults to `node:fs/promises`. */ readonly readTextFile?: (path: string) => Promise; /** Resolve one `extends` specifier to a path. Defaults to Node resolution. */ readonly resolveExtends?: (specifier: string, fromPath: string) => Promise; } /** * Resolve the two legacy-decorator flags from a TypeScript configuration. * * JSONC parsing reuses the framework manifest parser. Inheritance is bounded, * cycle checked, and merged in TypeScript precedence order: later parents win, * then the child config overrides them. */ export declare function readTypeScriptDecoratorOptions(input: ReadTypeScriptDecoratorOptionsInput): Promise; //# sourceMappingURL=typescript-config.d.ts.map