claude-code-best/src/types/internal-modules.d.ts
2026-03-31 21:21:46 +08:00

20 lines
663 B
TypeScript

/**
* Type declarations for internal Anthropic packages that cannot be installed
* from public npm. All exports are typed as `any` to suppress errors while
* still allowing IDE navigation for the actual source code.
*/
// ============================================================================
// bun:bundle — compile-time macros
// ============================================================================
declare module "bun:bundle" {
export function feature(name: string): boolean;
export function MACRO<T>(fn: () => T): T;
}
declare module "bun:ffi" {
export function dlopen(path: string, symbols: Record<string, any>): any;
}
//