import { default as React } from 'react'; import { IAppearanceConfig } from '../../types/checkout.types'; type DevSettings = { /** * Is Test Mode * @type {boolean} * @optional * @default false * If you are using a test mode, you can pass it here. Certain actions and flows will be disabled in test mode. */ isTestMode?: boolean; /** * Base URL * @type {string} * @optional * If you want to use a custom base URL, you can pass it here. */ baseUrl?: string; }; type ZenskarProviderProps = { /** * Organisation ID * @type {string} * @required * Navigate over to the settings page in the Zenskar Dashboard, under the "General" tab, copy the "Organisation ID" */ organisationId: string; /** * Business Entity ID * @type {string | null | undefined} * Navigate over to the settings page in the Zenskar Dashbord, under the "Business Entity" tab, copy the "Business Entity ID" */ businessEntityId?: string | null; /** * Customer ID * @type {string | null | undefined} * @required * Customer ID is the ID of the customer you want to checkout for. */ customerId?: string | null; /** * Token * @type {string} * @optional * Pass the session token generated from the zenskar session api to the provider. */ token?: string; /** * Theme * @type {IAppearanceConfig} * @optional * Theme is the theme for the checkout session. */ theme?: IAppearanceConfig | null; /** * Dev Settings * @type {DevSettings} * @optional * Dev Settings is the configuration for the checkout session. */ devSettings?: DevSettings; /** * Children * @type {React.ReactNode} * @required * The components that will have access to the Zenskar provider context. */ children: React.ReactNode; }; declare const ZenskarProvider: ({ organisationId, customerId, businessEntityId, token, theme, devSettings, children, }: ZenskarProviderProps) => React.JSX.Element; export default ZenskarProvider; export type { DevSettings, ZenskarProviderProps };