import { PropsWithChildren } from 'react'; import { useSigner } from 'wagmi'; type Signature = string; export type EthTypedData = { types: Record; primaryType: string; domain: Record; message: Record; }; export type CustomSigner = { address?: string; chainId?: number | string; signMessage?: (msgToSign: string) => Promise; signTypedData?: (args: EthTypedData) => Promise; }; export type SignerContextProps = PropsWithChildren; type SignerContextT = { isConnected: boolean; disconnect: () => void; refetchSigner: () => undefined | ReturnType['refetch']>; signMessage: (msgToSign: string) => Promise; signTypedData: (args: EthTypedData) => Promise; address?: `0x${string}`; chainId?: number; }; declare const SignerProvider: (props: SignerContextProps) => JSX.Element; declare function useSignerContext(): SignerContextT; export { SignerProvider, useSignerContext };