import { DoCheck, EventEmitter, OnChanges, OnInit } from '@angular/core';
import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
import { FrameworkLibraryService } from './framework-library/framework-library.service';
import { WidgetLibraryService } from './widget-library/widget-library.service';
import { JsonSchemaFormService } from './json-schema-form.service';
/**
 * @module 'JsonSchemaFormComponent' - Angular JSON Schema Form
 *
 * Root module of the Angular JSON Schema Form client-side library,
 * an Angular library which generates an HTML form from a JSON schema
 * structured data model and/or a JSON Schema Form layout description.
 *
 * This library also validates input data by the user, both using individual
 * validators which provide real-time feedback while the user is filling out
 * the form, and then using the entire schema when the form is submitted,
 * to make sure the returned JSON data object is valid.
 *
 * This library is similar to, and mostly API compatible with:
 *
 * - JSON Schema Form's Angular Schema Form library for AngularJs
 *   http://schemaform.io
 *   http://schemaform.io/examples/bootstrap-example.html (examples)
 *
 * - Joshfire's JSON Form library for jQuery
 *   https://github.com/joshfire/jsonform
 *   http://ulion.github.io/jsonform/playground (examples)
 *
 * - Mozilla's react-jsonschema-form library for React
 *   https://github.com/mozilla-services/react-jsonschema-form
 *   https://mozilla-services.github.io/react-jsonschema-form (examples)
 *
 * This library depends on:
 *  - Angular (obviously)                  https://angular.io
 *  - lodash, JavaScript utility library   https://github.com/lodash/lodash
 *  - ajv, Another JSON Schema validator   https://github.com/epoberezkin/ajv
 * In addition, the Example Playground also depends on:
 *  - brace, Browserified Ace editor       http://thlorenz.github.io/brace
 */
export declare class JsonSchemaFormComponent implements DoCheck, OnChanges, OnInit {
    private frameworkLibrary;
    private widgetLibrary;
    private jsf;
    private sanitizer;
    formID: number;
    debugOutput: any;
    formValueSubscription: any;
    jsfObject: any;
    schema: any;
    layout: any[];
    data: any;
    options: any;
    framework: string;
    widgets: string;
    form: any;
    model: any;
    JSONSchema: any;
    UISchema: any;
    formData: any;
    loadExternalAssets: boolean;
    debug: boolean;
    onChanges: EventEmitter<any>;
    onSubmit: EventEmitter<any>;
    isValid: EventEmitter<boolean>;
    validationErrors: EventEmitter<any>;
    formSchema: EventEmitter<any>;
    formLayout: EventEmitter<any>;
    constructor(frameworkLibrary: FrameworkLibraryService, widgetLibrary: WidgetLibraryService, jsf: JsonSchemaFormService, sanitizer: DomSanitizer);
    ngOnInit(): void;
    ngOnChanges(): void;
    readonly stylesheets: SafeResourceUrl[];
    readonly scripts: SafeResourceUrl[];
    /**
     * Initialize 'options' (global form options) and set framework
     * Combine available inputs:
     * 1. options - recommended
     * 2. form.options - Single input style
     */
    private initializeOptions();
    /**
     * Initialize 'schema'
     * Use first available input:
     * 1. schema - recommended / Angular Schema Form style
     * 2. form.schema - Single input / JSON Form style
     * 3. JSONSchema - React JSON Schema Form style
     * 4. form.JSONSchema - For testing single input React JSON Schema Forms
     * 5. form - For testing single schema-only inputs
     * TODO: 6. (none) no schema - construct form entirely from layout instead
     */
    private initializeSchema();
    /**
     * Initialize 'layout'
     * Use first available array input:
     * 1. layout - recommended
     * 2. form - Angular Schema Form style
     * 3. form.form - JSON Form style
     * 4. form.layout - Single input style
     * 5. (none) no input - use default layout instead
     */
    private initializeLayout();
    /**
     * Import alternate layout formats 'UISchema' or 'customFormItems'
     * used for React JSON Schema Form and JSON Form API compatibility
     * Use first available input:
     * 1. UISchema - React JSON Schema Form style
     * 2. form.UISchema - For testing single input React JSON Schema Forms
     * 2. form.customFormItems - JSON Form style
     * 3. (none) no input - don't import
     */
    private importAlternateLayout();
    /**
     * Initialize 'initialValues'
     * Use first available input:
     * 1. data - recommended
     * 2. model - Angular Schema Form style
     * 3. form.value - JSON Form style
     * 4. form.data - Single input style
     * 5. formData - React JSON Schema Form style
     * 6. form.formData - For easier testing of React JSON Schema Forms
     * 7. (none) no data - initialize data from schema and layout defaults only
     */
    private initialValues();
    /**
     * 'initializeForm' function
     *
     * - Update 'schema', 'layout', and 'initialValues', from inputs.
     *
     * - Create 'dataMap' to map the data to the schema and template.
     *
     * - Create 'schemaRefLibrary' to resolve schema $ref links.
     *
     * - Create 'layoutRefLibrary' to use when dynamically adding
     *   form components to arrays and recursive $ref points.
     *
     * - Create 'formGroupTemplate', then from it 'formGroup',
     *   the Angular formGroup used to control the reactive form.
     *
     * @return {void}
     */
    initializeForm(): void;
    ngDoCheck(): void;
    submitForm(): void;
}
