import { SignedEvent, HashedEvent, StampedEvent } from "@welshman/util"; import { ISigner, SignerOptions } from "./util.js"; export declare const now: (drift?: number) => number; export declare const getSeal: (signer: ISigner, pubkey: string, rumor: HashedEvent, options?: SignerOptions) => Promise; export declare const getWrap: (wrapper: ISigner, pubkey: string, seal: SignedEvent, tags: string[][]) => Promise; export declare const wrap: (signer: ISigner, wrapper: ISigner, pubkey: string, template: StampedEvent, tags?: string[][], options?: SignerOptions) => Promise; /** * A decision about the wrap itself rather than a failure to reach the signer. The wrap will * read the same way every time it is tried, so a caller is free to remember the verdict; * anything the signer throws is about the signer and may answer next time. */ export declare class InvalidWrapError extends Error { } export declare const unwrap: (signer: ISigner, wrap: SignedEvent, options?: SignerOptions) => Promise; export declare class Nip59 { private signer; private wrapper?; private cache; constructor(signer: ISigner, wrapper?: ISigner | undefined); static fromSigner: (signer: ISigner) => Nip59; static fromSecret: (secret: string) => Nip59; withWrapper: (wrapper: ISigner) => Nip59; wrap: (pubkey: string, template: StampedEvent, tags?: string[][], options?: SignerOptions) => Promise; unwrap: (event: SignedEvent, options?: SignerOptions) => Promise; } //# sourceMappingURL=nip59.d.ts.map