import { ReactNode } from 'react'; import { Chain } from 'viem'; import { State } from 'wagmi'; import { MockParameters } from 'wagmi/connectors'; import { GraphAuthKitInnerState } from '../inner/GraphAuthKitInner.context'; export type MockGraphAuthKitProviderProps = { infuraKey: string; gatewayApiKey?: string | null; /** * Provide an initial state to pass to the `WagmiConfig` that establishes if we have a connected (authenticated) user * If a string, use the `cookieToInitialState` util to derive * @see https://wagmi.sh/core/api/createConfig#state-1 */ initialState?: State | string; /** * Parameters that are passed to the `mock` connector constructor for building the mock connector. * Includes: * - accounts -> addresses to establish as connected for the user * * @see https://wagmi.sh/react/api/connectors/mock#parameters */ mockConnectorParams: MockParameters; /** * Provide the default value for the inner context. * Allows the mock to set the conntected state up with a safe, etc. * * @default { * _infuraKey: '', * _connectModalOpen: false, * _setConnectModalOpen() {}, * _modalTitle: 'Connect your wallet', * _setModalTitle() {}, * _setModalSubtitle() {}, * _modalState: 'primary', * _setModalState() {}, * _setSafeInfo() {}, * _authenticating: false, * _setAuthenticating() {}, * _connect() {}, * _connectMultisig() {}, * _reset() {}, * } */ innerCtxState?: GraphAuthKitInnerState; children: ReactNode; }; /** * Exposed mock `` instance for testing components and hooks exposed * by this library and wagmi. * * Allows for passing in addresses and information to establish an authenticated/connected `WagmiProvider` instance. * * @example User is not authenticated * ```tsx * import { MockGraphAuthKitProvider } from '@edgeandnode/graph-auth-kit/test-harness' * * * * * ``` * * @example User is authenticated * ```tsx * import { MockGraphAuthKitProvider } from '@edgeandnode/graph-auth-kit/test-harness' * * () * }} * innerCtxState={{...default, _connector: 'injected'}} * > * * * ``` * * @example User is authenticated with a Safe * ```tsx * import { MockGraphAuthKitProvider } from '@edgeandnode/graph-auth-kit/test-harness' * * () * }} * innerCtxState={{...default, _connector: 'multisig', _enteredMultisigInfo: {address: '0x8c1b521970fDAB85d71260E08ee1dA5Dd878c60D',network:42161} }} * > * * * ``` * * @param props used to initialize the wagmi and inner context state */ export declare function MockGraphAuthKitProvider(props: MockGraphAuthKitProviderProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=MockGraphAuthKit.context.d.ts.map