import { Record } from "../types/record"; import { Connection } from "@solana/web3.js"; import { Record as SnsRecord } from "@bonfida/sns-records"; interface GetRecordV2Options { deserialize?: boolean; } export interface RecordResult { retrievedRecord: SnsRecord; record: Record; verified: { staleness: boolean; roa?: boolean; }; deserializedContent?: string; } /** * Retrieves multiple records V2 for a domain, verifies the staleness and right * of association of each, and optionally deserializes their content. * * @param connection The Solana RPC connection object. * @param domain The `.sol` domain name that owns the records. * @param records The list of record types to retrieve. * @param options Optional retrieval settings. * @param options.deserialize When `true`, deserializes the raw content of each record. * @returns An array of results in the same order as `records`. Each entry * contains the record type, the raw SNS record account, staleness and * right-of-association verification results, and optionally the deserialized * content. Entries are `undefined` for records that do not exist on-chain. */ export declare function getMultipleRecordsV2(connection: Connection, domain: string, records: Record[], options?: GetRecordV2Options): Promise<(RecordResult | undefined)[]>; export {};