//#region src/erasable-syntax.d.ts /** * Rewrites every non-erasable construct in a generated file so it compiles * under `erasableSyntaxOnly` and runs under Node.js type stripping. * * @param code - The contents of a single generated file. * @returns The same file with only erasable TypeScript syntax. * * @example * ```ts * makeSyntaxErasable("export enum Key {\n V1,\n V2,\n}"); * // const KeyLookup = { 0: "V1", 1: "V2", V1: 0, V2: 1 } as const; * // * // export const Key: Omit = KeyLookup; * // * // export type Key = (typeof Key)[keyof typeof Key]; * ``` */ export declare function makeSyntaxErasable(code: string): string; //#endregion //# sourceMappingURL=erasable-syntax.d.ts.map