import type { LockKey, JSONValue, DID } from '../types.js'; import { stringify, publicKeyToDid } from '../util.js'; export { stringify, publicKeyToDid }; export declare function importPublicKey(key: string): Uint8Array; /** * Convert a DID format string to a public key instance. */ export declare function importDid(did: DID): Promise; /** * Create a new keypair. */ export declare function create(): Promise; /** * Verify a given signature and message. */ export declare function verify(data: string | Uint8Array, sig: string | Uint8Array, keys: { publicKey: Uint8Array | string; }): Promise; export declare function sign(data: string | Uint8Array, key: LockKey): Promise; export declare function sign(data: string | Uint8Array, key: LockKey, opts: { format: 'raw'; }): Promise; export declare function sign(data: string | Uint8Array, key: LockKey, opts: { format: 'string'; }): Promise; export declare function encrypt(data: JSONValue, lockKey: LockKey): Promise; export declare function encrypt(data: JSONValue, lockKey: LockKey, { outputFormat }: { outputFormat: 'string'; }): Promise; export declare function encrypt(data: JSONValue, lockKey: any, { outputFormat }: { outputFormat: 'raw'; }): Promise; /** * If called with { parseJSON: false }, will return * a string. * * If called with { outputFormat: 'raw' }, will return * a Uint8Array. */ export declare function decrypt(data: string | Uint8Array, lockKey: LockKey, { outputFormat }: { outputFormat: 'raw'; }): Promise; export declare function decrypt(data: string | Uint8Array, lockKey: LockKey, opts?: { outputFormat: 'utf8'; }): Promise; //# sourceMappingURL=ecc.d.ts.map