@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
20 lines • 743 B
TypeScript
import React from "react";
import { RampCatalog } from "./types";
import { Loadable } from "../../types";
export type RampCatalogDataAPI = {
fetchRampCatalog: () => Promise<RampCatalog>;
};
type RampCatalogContextType = {
state: Loadable<RampCatalog>;
updateCatalog: () => Promise<void>;
};
export declare const rampCatalogContext: React.Context<RampCatalogContextType>;
type RampCatalogProviderProps = {
children: React.ReactNode;
updateFrequency: number;
provider?: string;
};
export declare function useRampCatalogContext(): Loadable<RampCatalog>;
export declare function RampCatalogProvider({ children, updateFrequency, }: RampCatalogProviderProps): React.JSX.Element;
export {};
//# sourceMappingURL=index.d.ts.map