/** * Declarative list of TypeScript lib file names used by Typebulb bulbs. * * Single source of truth for both the web client (loaded via Vite ?raw imports * into Monaco/standalone TypeChecker) and the CLI (emitted into tsconfig's * compilerOptions.lib array). * * Names match TypeScript's lib..d.ts naming (without the `lib.` prefix * and without the `.d.ts` suffix). The corresponding tsconfig `lib` entry is * derived by transforming `es2015.core` → `ES2015.Core`, etc. */ /** * Minimum TypeScript version required for an entry. Used to filter the manifest * against the consumer's available TS version. */ export type TsVersionGate = '5.0' | '5.5'; export interface LibEntry { /** Lib name as used in the lib..d.ts file (e.g. 'es2015.core'). */ name: string; /** Minimum TS version required, if any. */ since?: TsVersionGate; } /** * ES core libs (no DOM, no WebGPU). Ordered by ES version, then alphabetically. */ export declare const esLibEntries: LibEntry[]; /** * DOM libs (separate from ES core so server-side emit can omit them). */ export declare const domLibEntries: LibEntry[]; /** * Filter a list of entries against an available TS version. * Entries without `since` are always included. */ export declare function filterByTsVersion(entries: LibEntry[], tsVersion?: TsVersionGate): LibEntry[]; //# sourceMappingURL=libManifest.d.ts.map