// Type definitions for flat 5.0.0 // Project: https://github.com/hughsk/flat // Definitions by: Ilya Mochalov // Oz Weiss // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var flatten: FlatTypes.Flatten; export = flatten; declare namespace FlatTypes { interface FlattenOptions { delimiter?: string; safe?: boolean; maxDepth?: number; transformKey?: (key: string) => string; } interface Flatten { ( target: TTarget, options?: FlattenOptions ): TResult; flatten: Flatten; unflatten: Unflatten; } interface UnflattenOptions { delimiter?: string; object?: boolean; overwrite?: boolean; transformKey?: (key: string) => string; } interface Unflatten { ( target: TTarget, options?: UnflattenOptions ): TResult; } }