adnbn
Version:
Addon Bone - Cross-browser web extension framework with shared code base
24 lines (20 loc) • 1.1 kB
TypeScript
import { OffscreenDefinition } from '../types/offscreen.js';
export { OffscreenReason, OffscreenUnresolvedDefinition } from '../types/offscreen.js';
import { TransportType, TransportDictionary } from '../types/transport.js';
import { DeepAsyncProxy } from '../types/helpers.js';
import '../types/view.js';
import 'react';
import 'utility-types';
import 'html-rspack-tags-plugin';
import '../manifest-DAV18Z2K.js';
import '../types/app.js';
import '../types/browser.js';
import '../types/locale.js';
import '../types/message.js';
type OffscreenParameters = chrome.offscreen.CreateParameters;
type OffscreenAlias = string;
type OffscreenMap = Map<OffscreenAlias, OffscreenParameters>;
declare const defineOffscreen: <T extends TransportType>(options: OffscreenDefinition<T>) => OffscreenDefinition<T>;
declare const getOffscreens: () => OffscreenMap;
declare const getOffscreen: <N extends Extract<keyof TransportDictionary, string>>(name: N) => DeepAsyncProxy<TransportDictionary[N]>;
export { type OffscreenAlias, OffscreenDefinition, type OffscreenMap, defineOffscreen, getOffscreen, getOffscreens };