import type { TSESTree } from "@typescript-eslint/utils"; /** * Check whether a value is a static `blob:` URL. * * @param value - URL string to inspect. * * @returns Whether the string starts with `blob:`. */ export declare const isBlobUrl: (value: string) => boolean; /** * Check whether a value is a static `data:` URL. * * @param value - URL string to inspect. * * @returns Whether the string starts with `data:`. */ export declare const isDataUrl: (value: string) => boolean; /** * Check whether an expression is one of the common global objects used for * worker-related APIs. * * @param value - Expression to inspect. * * @returns Whether the expression is `window`, `self`, or `globalThis`. */ export declare const isWorkerGlobalObject: (value: Readonly) => boolean; /** * Check whether a constructor callee targets `Worker` or `SharedWorker`. * * @param callee - Constructor callee to inspect. * * @returns Whether the callee is a worker constructor. */ export declare const isWorkerConstructor: (callee: Readonly) => boolean; /** * Check whether a call targets `importScripts(...)`. * * @param callee - Call callee to inspect. * * @returns Whether the callee is an importScripts sink. */ export declare const isImportScriptsCall: (callee: Readonly) => boolean; /** * Check whether an expression resolves the service worker container from * `navigator.serviceWorker`. * * @param value - Expression to inspect. * * @returns Whether the expression is a service worker container access. */ export declare const isServiceWorkerContainerAccess: (value: Readonly) => value is TSESTree.MemberExpression; /** * Check whether a call targets `navigator.serviceWorker.register(...)`. * * @param callee - Call callee to inspect. * * @returns Whether the callee is a service worker registration sink. */ export declare const isServiceWorkerRegisterCall: (callee: Readonly) => boolean; /** * Check whether an expression is a direct `URL.createObjectURL(...)` call. * * @param node - Expression to inspect. * * @returns Whether the expression creates an object URL from the global URL * API. */ export declare const isUrlCreateObjectUrlCall: (node: Readonly) => node is TSESTree.CallExpression; //# sourceMappingURL=worker-code-loading.d.ts.map