1 | import { ObjectType, ModelType } from "./General";
|
2 | import { Document } from "./Document";
|
3 | export interface SerializerOptions {
|
4 | include?: string[];
|
5 | exclude?: string[];
|
6 | modify?: (serialized: ObjectType, original: ObjectType) => ObjectType;
|
7 | }
|
8 | export declare class Serializer {
|
9 | #private;
|
10 | static defaultName: string;
|
11 | constructor();
|
12 | add(name: string, options: SerializerOptions): void;
|
13 | default: {
|
14 | set: (name?: string) => void;
|
15 | };
|
16 | delete(name: string): void;
|
17 | _serializeMany(documentsArray: ModelType<Document>[], nameOrOptions: SerializerOptions | string): ObjectType[];
|
18 | _serialize(document: ObjectType, nameOrOptions?: SerializerOptions | string): ObjectType;
|
19 | }
|