@safe-global/safe-react-hooks
Version:
A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts
14 lines (13 loc) • 557 B
TypeScript
import { Config } from 'wagmi';
import type { SafeClient, SafeConfig } from './types/index.js';
export type SafeContextType = {
isInitialized: boolean;
config: SafeConfig | undefined;
wagmiConfig: Config | undefined;
setConfig: (config: SafeConfig) => void;
setSigner: (signer: string | undefined) => Promise<void>;
publicClient: SafeClient | undefined;
signerClient: SafeClient | undefined;
};
export declare const initialSafeContext: SafeContextType;
export declare const SafeContext: import("react").Context<SafeContextType>;