import { type AbstractType } from "@dao-xyz/borsh"; import { PublicSignKey } from "./key.js"; import { PreHash } from "./prehash.js"; import { type SignWithKey } from "./signer.js"; export declare class SignatureWithKey { signature: Uint8Array; publicKey: PublicSignKey; prehash: PreHash; constructor(props: { signature: Uint8Array; publicKey: PublicSignKey; prehash: PreHash; }); equals(other: SignatureWithKey): boolean; } export declare class MaybeSigned { data: Uint8Array; signature?: SignatureWithKey; constructor(props: { data: Uint8Array; value?: T; signature?: SignatureWithKey; }); _value?: T; getValue(constructor: AbstractType): T; verify(): Promise; equals(other: MaybeSigned): boolean; sign(signer: SignWithKey): Promise>; } export declare const verify: (signature: SignatureWithKey, data: Uint8Array) => Promise; export declare const verifyPrepared: (signature: SignatureWithKey, preparedData: Uint8Array) => Promise; //# sourceMappingURL=signature.d.ts.map