import { authly } from "authly"; import { Payload } from "./Payload"; export declare class Signer { private readonly key?; constructor(key?: { public?: string; private?: string; } | undefined); sign(data: Payload.Creatable, duration?: number | "infinite"): Promise; static open(key?: { public?: string; private?: string; }): Signer; } export declare namespace Signer { function create(options: { key?: { public?: string; private?: string; }; duration?: number; }): authly.Issuer | undefined; }