import { EventEmitter } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { FormioResourceConfig } from './resource.config'; import { FormioResources } from './resources.service'; import { FormioAlerts } from '../components/alerts/formio.alerts'; import { FormioLoader } from '../components/loader/formio.loader'; import { FormioAppConfig } from '../formio.config'; import { FormioRefreshValue } from '../formio.common'; import Promise from 'native-promise-only'; export declare class FormioResourceService { appConfig: FormioAppConfig; config: FormioResourceConfig; loader: FormioLoader; resourcesService: FormioResources; initialized: boolean; form: any; alerts: FormioAlerts; resource: any; resourceUrl?: string; formUrl: string; formFormio: any; formio: any; refresh: EventEmitter; resourceLoading?: Promise; resourceLoaded?: Promise; resourceId?: string; resources: any; formLoading?: Promise; formLoaded: Promise; formResolve: any; formReject: any; constructor(appConfig: FormioAppConfig, config: FormioResourceConfig, loader: FormioLoader, resourcesService: FormioResources); initialize(): void; init(): any; onError(error: any): void; onFormError(err: any): void; setContext(route: ActivatedRoute): void; loadForm(): any; loadParents(): any; onSubmissionError(err: any): void; loadResource(route: ActivatedRoute): any; save(resource: any): any; remove(): any; }