import * as i0 from '@angular/core'; import { PipeTransform, TemplateRef, OnDestroy, OnInit } from '@angular/core'; import { ConfigColumns, Config, Api } from 'datatables.net'; import { Subject } from 'rxjs'; import * as i1 from '@angular/common'; interface ADTColumns extends ConfigColumns { /** * Define the column's unique identifier */ id?: string; /** * Define the arguments for the transform method of the pipe, to change its behavior */ ngPipeArgs?: any[]; /** * Set instance of Angular pipe to transform the data of particular column */ ngPipeInstance?: PipeTransform; /** * Set `TemplateRef` to transform the data of this column */ ngTemplateRef?: ADTTemplateRef; /** * Define the arguments for the transform method of the title pipe, to change its behavior */ titleNgPipeArgs?: any[]; /** * Set instance of Angular pipe to transform the title of particular column */ titleNgPipeInstance?: PipeTransform; /** * Set `TemplateRef` to transform the title of this column */ titleNgTemplateRef?: ADTTemplateRef; } interface ADTSettings extends Config { columns?: ADTColumns[]; } interface ADTTemplateRef { /** * */ context?: ADTTemplateRefContext; /** * `TemplateRef` to work with */ ref: TemplateRef; } interface ADTTemplateRefContext { captureEvents: Function; userData?: any; } declare class AngularDatatable implements OnDestroy, OnInit { /** * The DataTable instance built by the jQuery library [DataTables](datatables.net). * * It's possible to execute the [DataTables APIs](https://datatables.net/reference/api/) with this variable. */ dtInstance: Promise; /** * The DataTable option you pass to configure your table. */ readonly dtOptions: i0.ModelSignal; /** * This trigger is used if one wants to trigger manually the DT rendering. Useful when rendering angular rendered DOM. */ readonly dtTrigger: i0.InputSignal | Subject | undefined>; private dt; private readonly el; private readonly renderer; private readonly vcr; ngOnDestroy(): void; ngOnInit(): void; private applyNgPipeTransform; private applyNgRefTemplate; private applyTitleNgPipeTransform; private applyTitleNgRefTemplate; private displayTable; private getColumnUniqueId; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class DataTablesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { AngularDatatable, DataTablesModule }; export type { ADTColumns, ADTSettings, ADTTemplateRef, ADTTemplateRefContext };