import { ValidationException } from './ValidationException'; /** * Is this function being invoked in a WebWorker context? * See: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API * * @returns a boolean indicating whether we are currently in a WebWorker context */ export declare const isWebWorkerContext: () => boolean; /** * Validate that this function is being invoked in a WebWorker context. * See: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API * * @returns `null` we are in a Web Worker context or a `ValidationException` if * not */ export declare const validateWebWorkerContext: () => ValidationException | null; /** * Assert that this function is being invoked in a WebWorker context. * See: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API * * @throws an `AssertionException` if the function is not invoked in a Web * Worker context */ export declare const assertWebWorkerContext: () => void;