@nosto/shopify-hydrogen
Version:
Component library to implement Nosto within Shopify Hydrogen
27 lines (26 loc) • 661 B
TypeScript
interface StorefrontI18n {
country?: string;
language?: string;
}
interface Storefront {
i18n: StorefrontI18n;
query: (query: string, options?: any) => Promise<any>;
getShopifyDomain?: () => string;
CacheNone: () => any;
}
interface Session {
get: (key: string) => Promise<string | null>;
}
interface Context {
storefront: Storefront;
session: Session;
}
interface GetNostoDataParams {
context: Context;
cartId?: string;
}
export declare function getNostoData({ context: { storefront, session }, cartId, }: GetNostoDataParams): Promise<{
nostoProviderData: any;
nostoSessionData: Promise<any>;
}>;
export {};