import { type Client, type GetLogsErrorType, type GetLogsParameters } from 'viem'; import type { Address } from 'viem/accounts'; export type GetSubregistryHistoryParameters = { /** The registry address to query */ registryAddress: Address; /** The label to get subregistry history for */ label: string; } & Partial>; export type SubregistryHistoryEntry = { tokenId: bigint; subregistry: Address; }; export type GetSubregistryHistoryReturnType = SubregistryHistoryEntry[]; export type GetSubregistryHistoryErrorType = GetLogsErrorType; /** * Get the subregistry update history for a name. * @param client - {@link Client} * @param parameters - {@link GetSubregistryHistoryParameters} * @returns Array of subregistry history entries. {@link GetSubregistryHistoryReturnType} * * @example * import { createPublicClient, http } from 'viem' * import { mainnet } from 'viem/chains' * import { getSubregistryHistory } from '@ensdomains/ensjs/public/v2' * * const client = createPublicClient({ * chain: mainnet, * transport: http(), * }) * const history = await getSubregistryHistory(client, { * registryAddress: '0x...', * label: 'example', * fromBlock: 0n, * }) * // [{ tokenId: 456n, subregistry: '0x...' }] */ export declare function getSubregistryHistory(client: Client, { registryAddress, label, fromBlock, toBlock, }: GetSubregistryHistoryParameters): Promise; //# sourceMappingURL=getSubregistryHistory.d.ts.map