export interface UseIrisAppName { appName: string | undefined; loading: boolean; error: Error | undefined; } /** * A hook to expose getIrisAppName for React components * * @requires ParamsRuntime * @returns {UseIrisAppName} appName, loading, error * @example * import { useIrisAppName } from "@trackunit/react-core-hooks"; * const { appName } = useIrisAppName(); * useEffect(() => { * (async () => { * if (appName) { * // do something with appName * } * })(); * }, [appName]); */ export declare const useIrisAppName: () => UseIrisAppName; export interface UseIrisAppId { irisAppId: string | undefined; loading: boolean; error: Error | undefined; } /** * A hook to expose irisAppId using ParamsRuntime's getAppName and getOrgName for React components * * @requires ParamsRuntime * @returns {UseIrisAppId} irisAppId, loading, error * @example * import { useIrisAppName } from "@trackunit/react-core-hooks"; * const { irisAppId } = useIrisAppName(); * useEffect(() => { * (async () => { * if (irisAppId) { * // do something with irisAppId * } * })(); * }, [irisAppId]); */ export declare const useIrisAppId: () => UseIrisAppId;