import { CustomerInfo } from "@trackunit/iris-app-runtime-core"; export interface UseCustomerRuntime { customerInfo?: CustomerInfo; loading: boolean; error: Error | undefined; } /** * A hook to expose customer runtime for React components * * @requires CustomerRuntime * @returns {UseCustomerRuntime} customerRuntime * @example * import { useCustomerRuntime } from "@trackunit/react-core-hooks"; * const { customerInfo } = useCustomerRuntime(); * // use customerInfo to get customer info for instance. * useEffect(() => { * (async () => { * if (customerInfo?.customerId) { * // use graphql to get data for the customerId * } * })(); * }, [customerInfo]); */ export declare const useCustomerRuntime: () => UseCustomerRuntime;