import { DCCPayload } from "./models"; declare class DCC { static fromRaw(certificateRaw: string): Promise; static fromImage(certificateImagePath: string | Buffer | URL): Promise; get raw(): string; get kid(): string; get payload(): DCCPayload; checkSignature(signatureKey: { x: string | Buffer, y: string | Buffer, kid?: string | Buffer }): Promise; checkSignatureWithCertificate(certificate: Buffer): Promise; /** * * @param keys associative array of keys, [kid => {key}] * @returns {Promise} return a promise, if the certificate is validly signed with * a listed key, return the key with infos about authority that signed it. If the certificate * is not validly signed, return false. If the keys is not in list, throw Error. */ checkSignatureWithKeysList(keys: Record): Promise; } export { DCC, DCCPayload }