import { OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
import { ActivatedRoute } from '@angular/router';
import { AlertService } from '../../../../widgets/entry-components/alert/services/alert.service';
import { LoadingService } from '../../../../widgets/entry-components/loading/services/loading.service';
import { ToastService } from '../../../../widgets/entry-components/toast/services/toast.service';
import { AbstractService } from '../../services/abstract.service';
export declare class AbstractPageAddComponent<T> implements OnInit, OnDestroy {
    private service;
    private loadingService;
    private alertService;
    private toastService;
    private activatedRoute;
    dataFromRoute: T;
    dataRoute: Subscription;
    dataForUpdate: T;
    dataNameStr: string;
    title: string;
    constructor(service: AbstractService<T>, loadingService: LoadingService, alertService: AlertService, toastService: ToastService, activatedRoute: ActivatedRoute);
    ngOnInit(): void;
    ngOnDestroy(): void;
    getDataFromRouter(): void;
    save(data: T): void;
    update(data: T): void;
}
