import { QueryObserverResult, RefetchOptions } from '@tanstack/react-query'; import { ChainId, SanitizedRecords, SubnameRecordsRoute } from '@justaname.id/sdk'; import { Records } from '../../types'; export declare const buildRecordsBySubnameKey: (subname: string, chainId: ChainId | undefined, standard?: boolean) => (string | boolean | ChainId | undefined)[]; export interface GetRecordsResult { rawRecords: SubnameRecordsRoute['response'] | undefined; sanitizedRecords: SanitizedRecords | undefined; } export interface UseRecordsParams extends Omit { ens?: string | undefined; enabled?: boolean; skipQueue?: boolean; } export interface GetRecordsParams extends Omit { ens: string; skipQueue?: boolean; } export interface UseRecordsResult { isRecordsPending: boolean; isRecordsFetching: boolean; isRecordsLoading: boolean; records: Records | undefined; getRecords: (params: GetRecordsParams, forceUpdate?: boolean) => Promise; refetchRecords: (options?: RefetchOptions | undefined) => Promise>; recordsStatus: 'error' | 'success' | 'pending'; } export declare const useRecords: (params?: UseRecordsParams) => UseRecordsResult; //# sourceMappingURL=useRecords.d.ts.map