@shogun-sdk/one-shot
Version:
Shogun SDK - One Shot: React Components and hooks for cross-chain swaps
25 lines • 677 B
TypeScript
import React from 'react';
/**
* Defines the shape of the context value.
*/
interface ShogunLegoContextValue {
API_KEY: string;
}
/**
* Props for the `ShogunLegoProvider` component.
*/
interface ShogunLegoProviderProps {
children: React.ReactNode;
apiKey: string;
}
/**
* Provider component for wrapping parts of the app that need access to the API key.
*/
export declare function ShogunLegoProvider({ children, apiKey }: ShogunLegoProviderProps): JSX.Element;
/**
*
* Ensures the hook is only used within a `ShogunLegoProvider`.
*/
export declare function useShogunLego(): ShogunLegoContextValue;
export {};
//# sourceMappingURL=ShogunLegoContext.d.ts.map