import type { Fn, Mod } from "./types"; /** * Type guard to check if the current scope is a SharedWorkerGlobalScope. * * @param scope - The global scope to check. * @returns True if the scope is a SharedWorkerGlobalScope. */ export declare function isSharedWorker(scope: unknown): scope is SharedWorkerGlobalScope; /** * Type guard to check if the current scope is a DedicatedWorkerGlobalScope. * * @param scope - The global scope to check. * @returns True if the scope is a DedicatedWorkerGlobalScope. */ export declare function isDedicatedWorker(scope: unknown): scope is DedicatedWorkerGlobalScope; /** * Type guard to check if the current scope is a ServiceWorkerGlobalScope. * * @param scope - The global scope to check. * @returns True if the scope is a ServiceWorkerGlobalScope. */ export declare function isServiceWorker(scope: unknown): scope is ServiceWorkerGlobalScope; /** * Retrieves a function from a module object using a path array. * * @template O - The module type. * @param obj - The module object to search. * @param path - An array of keys representing the path to the function. * @returns The function or module at the specified path, or undefined if not found. * * @example * ```ts * const mod = { api: { getUser: () => {} } }; * const fn = getFunction(mod, ["api", "getUser"]); * ``` */ export declare function getFunction>(obj: O, path: Array): Mod | Fn | undefined;