// 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 Truncate {
    /**
     * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
     * string are replaced with the omission string which defaults to "…".
     *
     * @param string The string to truncate.
     * @param options The options object or maximum string length.
     * @return Returns the truncated string.
     */
    (): Truncate;
    /**
     * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
     * string are replaced with the omission string which defaults to "…".
     *
     * @param string The string to truncate.
     * @param options The options object or maximum string length.
     * @return Returns the truncated string.
     */
    (options: _.TruncateOptions): Truncate1x1;
    /**
     * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
     * string are replaced with the omission string which defaults to "…".
     *
     * @param string The string to truncate.
     * @param options The options object or maximum string length.
     * @return Returns the truncated string.
     */
    (options: _.TruncateOptions, string: string): string;
}
interface Truncate1x1 {
    /**
     * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
     * string are replaced with the omission string which defaults to "…".
     *
     * @param string The string to truncate.
     * @param options The options object or maximum string length.
     * @return Returns the truncated string.
     */
    (): Truncate1x1;
    /**
     * Truncates string if it’s longer than the given maximum string length. The last characters of the truncated
     * string are replaced with the omission string which defaults to "…".
     *
     * @param string The string to truncate.
     * @param options The options object or maximum string length.
     * @return Returns the truncated string.
     */
    (string: string): string;
}

declare const truncate: Truncate;
export = truncate;
