import { AfterContentInit, DoCheck, ElementRef, EmbeddedViewRef, EventEmitter, InjectionToken, IterableDiffer, IterableDiffers, NgZone, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from "@angular/core"; import { KeyedTemplate, View } from "@nativescript/core"; import { EventData, Template, ItemEventData, ItemsSource } from "@nativescript/core"; import { Pager } from "@triniwiz/nativescript-pager"; import * as i0 from "@angular/core"; export interface PagerTemplatedItemsView { items: any[] | ItemsSource; itemTemplate: string | Template; itemTemplates?: string | Array; refresh(): void; on(event: "itemLoading", callback: (args: ItemEventData) => void, thisArg?: any): any; on(event: "itemDisposing", callback: (args: ItemEventData) => void, thisArg?: any): any; off(event: "itemLoading", callback: (args: EventData) => void, thisArg?: any): any; off(event: "itemDisposing", callback: (args: EventData) => void, thisArg?: any): any; } export declare class ItemContext { $implicit?: any; item?: any; index?: number; even?: boolean; odd?: boolean; constructor($implicit?: any, item?: any, index?: number, even?: boolean, odd?: boolean); } export interface SetupItemViewArgs { view: EmbeddedViewRef; data: any; index: number; context: ItemContext; } export declare abstract class TemplatedItemsComponent implements DoCheck, OnDestroy, AfterContentInit { private _iterableDiffers; private zone; abstract get nativeElement(): Pager; protected templatedItemsView: Pager; protected _items: any; protected _differ: IterableDiffer; protected _templateMap: Map; private _selectedIndex; loader: ViewContainerRef; setupItemView: EventEmitter; itemTemplateQuery: TemplateRef; itemTemplate: TemplateRef; get items(): any; set items(value: any); get selectedIndex(): number; set selectedIndex(value: number); ngAfterViewInit(): void; constructor(_elementRef: ElementRef, _iterableDiffers: IterableDiffers, zone: NgZone); ngAfterContentInit(): void; ngOnDestroy(): void; private setItemTemplates; registerTemplate(key: string, template: TemplateRef): void; onItemLoading(args: ItemEventData): void; onItemDisposing(args: ItemEventData): void; setupViewRef(viewRef: EmbeddedViewRef, data: any, index: number): void; protected getItemTemplateViewFactory(template: TemplateRef): () => View; private detectChangesOnChild; ngDoCheck(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export interface ComponentView { rootNodes: Array; destroy(): void; } export declare type RootLocator = (nodes: Array, nestLevel: number) => View; export declare function getItemViewRoot(viewRef: ComponentView, rootLocator?: RootLocator): View; export declare const TEMPLATED_ITEMS_COMPONENT: InjectionToken; export declare class PagerItemDirective implements OnInit { private templateRef; private owner; private viewContainer; private item; constructor(templateRef: TemplateRef, owner: TemplatedItemsComponent, viewContainer: ViewContainerRef); private ensureItem; private applyConfig; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class TemplateKeyDirective { private templateRef; private comp; constructor(templateRef: TemplateRef, comp: TemplatedItemsComponent); set pagerTemplateKey(value: any); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }