UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

19 lines 668 B
import { SetStateAction, Dispatch } from 'react'; import { DecodeMethodEnum } from 'types'; export interface DataDecodeType { value: string; className?: string; initialDecodeMethod?: DecodeMethodEnum | string; setDecodeMethod?: Dispatch<SetStateAction<string>>; identifier?: string; } export declare const useDataDecode: ({ value, initialDecodeMethod, setDecodeMethod, identifier }: DataDecodeType) => { displayValue: string; validationWarnings: string[]; setActiveKey: Dispatch<SetStateAction<string>>; decodeOptions: { label: string; value: DecodeMethodEnum; }[]; }; //# sourceMappingURL=useDataDecode.d.ts.map