// AUTO-GENERATED: do not modify this file directly.
// If you need to make changes, modify generate-fp.ts (if necessary), then open a terminal in types/lodash/scripts, and do:
// npm run fp

import _ = require("../index");

interface FlattenDepth {
    /**
       * Recursively flatten array up to depth times.
       *
       * @param array The array to recursively flatten.
       * @param number The maximum recursion depth.
       * @return Returns the new flattened array.
       */
    (): FlattenDepth;
    /**
       * Recursively flatten array up to depth times.
       *
       * @param array The array to recursively flatten.
       * @param number The maximum recursion depth.
       * @return Returns the new flattened array.
       */
    (depth: number): FlattenDepth1x1;
    /**
       * Recursively flatten array up to depth times.
       *
       * @param array The array to recursively flatten.
       * @param number The maximum recursion depth.
       * @return Returns the new flattened array.
       */
    <T>(depth: number, array: _.ListOfRecursiveArraysOrValues<T> | null | undefined): T[];
}
interface FlattenDepth1x1 {
    /**
       * Recursively flatten array up to depth times.
       *
       * @param array The array to recursively flatten.
       * @param number The maximum recursion depth.
       * @return Returns the new flattened array.
       */
    (): FlattenDepth1x1;
    /**
       * Recursively flatten array up to depth times.
       *
       * @param array The array to recursively flatten.
       * @param number The maximum recursion depth.
       * @return Returns the new flattened array.
       */
    <T>(array: _.ListOfRecursiveArraysOrValues<T> | null | undefined): T[];
}

declare const flattenDepth: FlattenDepth;
export = flattenDepth;
