Files
claude-code/src/globals.d.ts
T
MRLokopandClaude Opus 4.6 a28646e446 feat: set up JS/TS project from source with build tooling
- Extract and scaffold Bun/TypeScript project from src.zip
- Add package.json with ~70 npm dependencies (react, ink, chalk, zod, etc.)
- Add tsconfig.json with ESNext target, bundler module resolution, path aliases
- Create runtime stubs for internal @ant/* packages and native modules
- Add preload.ts for MACRO build-time constants at runtime
- Add globals.d.ts with ambient declarations for optional packages
- Stub ~120 missing internal source files with required exports
- CLI runs successfully: `bun run start -- --help` shows full output

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 13:04:38 +03:00

106 lines
3.2 KiB
TypeScript

declare const MACRO: any;
declare module '*.md' {
const content: string;
export default content;
}
declare module 'qrcode' {
const qrcode: any;
export default qrcode;
export function toString(text: string, options?: any): Promise<string>;
export function toDataURL(text: string, options?: any): Promise<string>;
}
declare module 'audio-capture.node' {
const mod: any;
export default mod;
}
declare module 'react/compiler-runtime' {
export function c(size: number): any[];
}
declare module '@anthropic-ai/bedrock-sdk' {
export class AnthropicBedrock { constructor(opts?: any); messages: any; }
export default AnthropicBedrock;
}
declare module '@anthropic-ai/vertex-sdk' {
export class AnthropicVertex { constructor(opts?: any); messages: any; }
export default AnthropicVertex;
}
declare module '@anthropic-ai/foundry-sdk' {
const mod: any;
export = mod;
}
declare module '@aws-sdk/client-bedrock' {
export class BedrockClient { constructor(opts?: any); }
export class ListFoundationModelsCommand { constructor(opts?: any); }
export const paginateListFoundationModels: any;
}
declare module '@aws-sdk/client-sts' {
export class STSClient { constructor(opts?: any); }
export class GetCallerIdentityCommand { constructor(opts?: any); }
}
declare module '@aws-sdk/credential-providers' {
export function fromIni(opts?: any): any;
export function fromSSO(opts?: any): any;
export function fromEnv(): any;
export function fromNodeProviderChain(opts?: any): any;
}
declare module '@azure/identity' {
export class DefaultAzureCredential { constructor(opts?: any); getToken(scope: string): Promise<any>; }
export class ManagedIdentityCredential { constructor(opts?: any); }
}
declare module '@opentelemetry/exporter-logs-otlp-grpc' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-logs-otlp-http' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-logs-otlp-proto' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-metrics-otlp-grpc' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-metrics-otlp-http' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-metrics-otlp-proto' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-prometheus' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-trace-otlp-grpc' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-trace-otlp-http' { const mod: any; export = mod; }
declare module '@opentelemetry/exporter-trace-otlp-proto' { const mod: any; export = mod; }
declare module 'cacache' {
const mod: any;
export = mod;
}
declare module 'cli-highlight' {
export function highlight(code: string, options?: any): string;
}
declare module 'image-processor-napi' {
const mod: any;
export = mod;
}
declare module 'plist' {
export function parse(input: string): any;
export function build(obj: any): string;
}
declare module 'sharp' {
const sharp: any;
export default sharp;
}
declare module 'turndown' {
class TurndownService { constructor(opts?: any); turndown(html: string): string; }
export default TurndownService;
}
declare module 'url-handler-napi' {
const mod: any;
export = mod;
}