import { MatrixClient } from "matrix-js-sdk"; import { MatrixMemberReader } from "../memberReader/MatrixMemberReader"; /** * Sign an object (obj) with the users ed25519 key */ export declare function signObject(client: MatrixClient, obj: any): Promise; /** * Verifies whether the signature on obj (obj.signature) is valid. * This validates: * - Whether the object has been created by the Matrix user * (by checking the signature with that user's public key) * - Whether that user has access to the room (this is delegated to matrixMemberReader) * * Throws an error if invalid */ export declare function verifyObject(client: MatrixClient, memberReader: MatrixMemberReader, obj: any, eventTypeAccessRequired: string): Promise;