import { BorshSchema } from "borsher"; import { Schema } from "./generated"; /** * Given the onchain representation of a Schema, we generate a Borsh schema * for (de)serialization. * @param schema * @returns */ export declare const convertSasSchemaToBorshSchema: (schema: Schema) => BorshSchema>; /** * Given a SAS Schema and an object that represents the Attestation data, * serialize the Attestation data to valid byte array. * @param schema */ export declare const serializeAttestationData: (schema: Schema, data: Record) => Uint8Array; /** * Given a SAS Schema and a byte array of Attestation data, * deserialize the Attestation data to an object. * @param schema */ export declare const deserializeAttestationData: (schema: Schema, data: Uint8Array) => T;