import { executeBackendCallback , registerBackendCallback } from "@itwin/certa/lib/utils/CallbackUtils" ; const getEnvCallbackName = "getEnv" ; export function exposeBackendCallbacks ( ) { registerBackendCallback ( getEnvCallbackName , ( ) => { return JSON . stringify ( process . env ) ; } ) ; } export async function getProcessEnvFromBackend ( ) { return JSON . parse ( await executeBackendCallback ( getEnvCallbackName ) ) ; }