import PropertySerializer from "./property_serializer"; import TypeSerializer from "./type_serializer"; export interface PropertyBag { [prop: string]: T; } /** Returns a factory for object property serializers */ declare function ObjectPropertySerializer(backend: string): { create: (proto: Object, propertyName: string, options?: TypeSerializer & ObjectPropertySerializer.Options) => PropertySerializer, any, string>; }; declare namespace ObjectPropertySerializer { /** Object property serializer options */ interface Options { /** * Indicates if property can be undefined * @remarks Applicable to properties * @defaultValue `false` */ optional?: boolean; /** * Indicates if property can be null * @remarks Applicable to properties * @defaultValue `false` */ nullable?: boolean; /** * When defined it forces to use different property name in serialized object * @remarks Applicable to properties */ name?: string; } } export default ObjectPropertySerializer;