/*!
 * @package @coolgk/utils
 * @version 3.1.4
 * @link https://github.com/coolgk/node-utils
 * @license MIT
 * @author Daniel Gong <daniel.k.gong@gmail.com>
 *
 * Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
 * Licensed under the MIT License.
 */

/*!
 *  Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
 *  Licensed under the MIT License.
 */
export interface IJwtOptions {
    secret: string;
}
export interface IPayload {
    [index: string]: any;
}
export declare enum JwtError {
    SECRET_CANNOT_BE_EMPTY = "SECRET_CANNOT_BE_EMPTY",
}
export declare class Jwt {
    private _secret;
    constructor(options: IJwtOptions);
    generate(data: any, expiry?: number): string;
    verify(token?: string): false | IPayload;
}
export default Jwt;
