import ts from 'typescript'; import { MigrationError } from '../utils/types'; import { AnalyzedFile, ElementToMigrate, Result } from './types'; /** * Actually migrates a given template to the new syntax * @param template The template to migrate. * @param templateType The type of template. * @param node The current node. * @param file The file containing the node. * @returns The migration result */ export declare function migrateTemplate(template: string, templateType: string, node: ts.Node, file: AnalyzedFile): { errors: MigrationError[]; migrated: string | undefined; }; /** * Replaces structural directive datatable instances with new adtDatatable. * Returns null if the migration failed (e.g. there was a syntax error). * @param elementToMigrate The element to migrate * @param template The template * @param offset The current offset * @returns The result */ export declare function migrateAngularDatatableDirective(elementToMigrate: ElementToMigrate, template: string, offset: number): Result;