import { BFastDatabaseOptions } from '../bfast-database.option';
export declare class SecurityController {
    private readonly options;
    constructor(options: BFastDatabaseOptions);
    dayToMillSecond(days: number): number;
    comparePassword(plainPassword: string, hashPassword: string): Promise<boolean>;
    hashPlainText(plainText: string): Promise<string>;
    decodeToken(token: string): {
        uid: string;
        [key: string]: any;
    };
    generateUUID(): string;
    getToken(data?: {
        uid: string;
        [key: string]: any;
    }, expire?: number, host?: string): Promise<any>;
    verifyToken(token: any): Promise<any>;
    private getJwk;
}
