import * as _userjot_core from '@userjot/core'; import { InitOptions } from '@userjot/core'; import React, { PropsWithChildren } from 'react'; /** * A React hook that provides access to UserJot client functions. * @returns An object containing UserJot client functions. */ declare const useUserJot: () => { identify: (options: _userjot_core.IdentifyOptions | null) => void; }; interface IUserJotProviderProps { /** Your UserJot Project ID */ projectId: string; /** The URL for the UserJot SDK. Defaults to the UserJot CDN. */ sdkUrl?: string; /** The options for the UserJot SDK. These are defined in `@userjot/core`. */ options?: InitOptions; } /** * `UserJotProvider` is a React component that initializes the UserJot SDK. * It should wrap the root of your application or the part of your application * where you want to use UserJot. * * It includes the UserJot SDK script and initializes it with your Project ID * and any specified options. * * @param {PropsWithChildren} props - The props for the component. * @param {string} props.projectId - Your UserJot Project ID. This is required. * @param {React.ReactNode} props.children - The child components to render. * @param {string} [props.sdkUrl] - The URL for the UserJot SDK. Defaults to the UserJot CDN. * @param {InitOptions} [props.options] - The options for the UserJot SDK. These are defined in `@userjot/core`. * @returns {JSX.Element} - The provider component wrapping the children and UserJot SDK scripts. */ declare const UserJotProvider: React.FC>; export { UserJotProvider, useUserJot };