import { Key } from './basic'; import { CryptoCipher, CipherMode, Signatures } from './types'; export declare class PublicKey extends Key { get algorithm(): string | undefined; fingerprint(): Promise; pem(type?: 'pkcs1' | 'spki'): string; der(type?: 'pkcs1' | 'spki'): Uint8Array; encrypt(data: Uint8Array): Uint8Array; decrypt(data: Uint8Array): Uint8Array; encipher(data: Iterable | AsyncIterable, cipher?: CryptoCipher, mode?: CipherMode): Promise>; verify(signature: Uint8Array, data: Uint8Array | Iterable | AsyncIterable, algorithm?: Signatures): Promise; static fromPEM(key: string): PublicKey; static fromDER(key: Uint8Array, type?: 'pkcs1' | 'spki'): PublicKey; }