UNPKG

891 BTypeScriptView Raw
1import { ChildableComponent } from '../utils';
2import { Component, ComponentClass } from '../utils/component';
3import { Application } from '../application';
4import { ProjectReflection } from '../models';
5import { SerializerComponent } from './components';
6export declare class Serializer extends ChildableComponent<Application, SerializerComponent<any>> {
7 static EVENT_BEGIN: string;
8 static EVENT_END: string;
9 private router;
10 private routes;
11 initialize(): void;
12 addComponent<T extends SerializerComponent<any> & Component>(name: string, componentClass: T | ComponentClass<T>): T;
13 removeComponent(name: string): SerializerComponent<any> | undefined;
14 removeAllComponents(): void;
15 toObject(value: any, obj?: any): any;
16 projectToObject(value: ProjectReflection, eventData?: {
17 begin?: any;
18 end?: any;
19 }): any;
20 private findRoutes;
21}