import { SymbolsType } from './../symbols'; import { FormBufferOptions } from './../types'; import { IModificator, Modificators } from './../types/modificators'; import FormBuffer, { FormBufferExtended } from './../formBuffer'; export declare type TypeModificatorLowOptions = NumberConstructor | StringConstructor | ArrayConstructor | ObjectConstructor | BooleanConstructor; export declare type TypeModificatorBigOptions = { type: TypeModificatorLowOptions | typeof FormBuffer; options?: FormBufferOptions; }; export declare type TypeModificatorOptions = TypeModificatorLowOptions | TypeModificatorBigOptions; export declare type TypeModificatorDefaultTypeFunction = (value: any, options?: FormBufferOptions) => any; export declare type TypeModificatorInTypeFunction = (oldValue: any, newValue: any, options?: FormBufferOptions) => any; export declare type TypeModificatorOutTypeFunction = (value: any, options?: FormBufferOptions) => any; export interface TypeModificatorTypeObject { type: any; defaultFormater: TypeModificatorDefaultTypeFunction; inFormater?: TypeModificatorInTypeFunction; outFormater?: TypeModificatorOutTypeFunction; } export declare const defaultTypes: TypeModificatorTypeObject[]; export declare class TypeModificator implements IModificator { name: 'type'; types: Map; constructor(types?: TypeModificatorTypeObject[]); addType(typeObject: TypeModificatorTypeObject): void; getType(type: any): TypeModificatorTypeObject | undefined; hasType(type: any): boolean; removeType(type: any): boolean; parseOptions(options: TypeModificatorOptions): TypeModificatorBigOptions; defaultFormater(value: any, options: TypeModificatorOptions, formBuffer: FormBuffer | FormBufferExtended, symbols: SymbolsType): any; inFormater(oldValue: any, newValue: any, options: TypeModificatorOptions, formBuffer: FormBuffer | FormBufferExtended, symbols: SymbolsType): any; outFormater(value: any, options: TypeModificatorOptions, formBuffer: FormBuffer | FormBufferExtended, symbols: SymbolsType): any; } export declare const typeModificator: TypeModificator; export default typeModificator;