import { TokenGenerator, Token } from '../../api'; /** * Simple implementation that just delegates to a function call. * * The aim is to provide a bridge between user needs and avoiding internal code complexity. * * The user has the possibility to use a function as TokenGenerator whereas the code always * only handles one concept. * * @see UuidGenerator * @see Uuid */ export declare class FuncCallTokenGenerator implements TokenGenerator { private func; /** * Initialize with the function used to delegate Uuid generation. * * @param {Function} func the function used to generate a Uuid. * The function takes no parameter and returns a Uuid instance. */ constructor(func: () => Promise); generate(): Promise; }