UNPKG

@mondaydotcomorg/atp-compiler

Version:

Production-ready compiler for transforming async iteration patterns into resumable operations with checkpoint-based state management

36 lines 1.32 kB
import type { TransformResult, CompilerConfig } from '../types.js'; import type { ICompiler } from '../types/compiler-interface.js'; /** * ATP Compiler - Standard compiler for transforming code to support resumability * Implements ICompiler interface for consistency and dependency injection support */ export declare class ATPCompiler implements ICompiler { private config; private detector; private loopTransformer; private arrayTransformer; private promiseTransformer; constructor(config?: Partial<CompilerConfig>); detect(code: string): import("../types.js").DetectionResult; transform(code: string): TransformResult; private isArrayMethodCall; private isPromiseAllCall; private isPromiseAllSettledCall; /** * Get the compiler type identifier (ICompiler interface requirement) */ getType(): string; /** * Get cache statistics (ICompiler interface requirement) * ATPCompiler doesn't cache ASTs, so returns null */ getCacheStats(): null; } export * from './detector.js'; export * from './batch-detector.js'; export * from './batch-optimizer.js'; export * from './loop-transformer.js'; export * from './array-transformer.js'; export * from './promise-transformer.js'; export * from './utils.js'; //# sourceMappingURL=index.d.ts.map