import ImportRecord from './ImportRecord'; import { AppTransformRequest } from './AppClient'; export interface AppTransformPreview { original: ImportRecord; transformed: ImportRecord; } export declare class AiTransformer { private lastTransformation; /** * Call the AI API to get transformation code */ getTransformation(request: AppTransformRequest): Promise; getLastTransformation(): AiTransformation; } export declare class AiTransformation { private readonly code; private transformFunctionCache; constructor(code: string); /** * Execute the transformation code on a record in a safe way */ executeTransformation(record: ImportRecord): void; /** * Generate preview of transformations on a sample of records */ generatePreview(records: ImportRecord[], filteredRecords: number[], maxSamples?: number): AppTransformPreview[]; /** * Apply transformation to all records */ applyTransformation(records: ImportRecord[], filteredRecords: number[]): void; }