// Generated by dts-bundle v0.7.3 declare module 'arianee_bundle' { import { type UISettings } from "arianee_bundle/hooks/useUISettings"; import type { AppI18N } from "arianee_bundle/i18n/types"; import type { DeepPartial } from "arianee_bundle/types/DeepPartial"; export type ArianeeInstance = { uiSettings: UISettings; isLoggedIn: () => Promise; shopify: { url: string; headless?: { getCustomerAccessToken: () => Promise; getStorefrontAccessToken: () => Promise; }; }; onLoginClick?: () => void; showOwnedNfts: () => void; clearStorage: () => void; }; export type Arianee = { init: (params: { shopify: { url: string; /** If you use this app on a headless store, you must pass this object */ headless?: { /** A method that returns the current customer access token (or null if none / not logged in) */ getCustomerAccessToken: () => Promise; /** A method that returns the public storefront access token of your store */ getStorefrontAccessToken: () => Promise; }; }; settings?: { /** Locale to be used by the application, some locales may not be supported */ locale?: string; /** Style and run settings of the application's UI */ uiSettings?: UISettings; /** The DOM container in which elements of the app will be added */ appContainer?: { id: string; }; translations?: { [language: string]: { translation: DeepPartial; }; }; /** If set, the method that is called when the user clicks on the "login" CTA (not displayed if this method is undefined) */ onLoginClick?: () => void; }; }) => void; getInstance: () => ArianeeInstance; }; global { interface Window { arianee: Arianee; } } export const init: Arianee["init"]; export class ArianeeInitError extends Error { constructor(message: string); } } declare module 'arianee_bundle/hooks/useUISettings' { export type UISettings = { previewModal: "CLAIM_MODAL_1" | "CLAIM_MODAL_2" | "CLAIM_SUCCESS_MODAL" | "CLAIM_FAILED_MODAL" | "NOT_LOGGED_IN" | "OWNED_NFTS_MODAL" | "NONE"; modal: { background: string; enableModalFontColor: boolean; fontColor: string; primaryButtonClass: string; secondaryButtonClass: string; }; overlay: { enabled: boolean; background: string; }; }; export function useUISettings(): UISettings; export const DEFAULT_UI_SETTINGS: UISettings; } declare module 'arianee_bundle/i18n/types' { export type AppI18N = { app: { name: string; modals: { claim: { title: string; actions: { claimButton: string; claimButtonLoading: string; cancelButton: string; notClaimableInfo: string; }; serialNumber: string; }; owned: { title: string; noDppParagraph: string; }; claimStatus: { title: string; messages: { success: string; error: string; notLoggedIn: string; }; actions: { login: string; closeButton: string; }; }; medias: { noMedia: string; }; }; }; }; } declare module 'arianee_bundle/types/DeepPartial' { export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; }; }