1 import '@proton/pass/globals.d';
2 import type { Maybe } from '@proton/pass/types';
4 export type ExportFunction = (fn: Function, target: any, options: { defineAs: string }) => void;
5 export type CloneInto = <T>(obj: T, target: any, options: { cloneFunctions?: boolean; wrapReflectors?: boolean }) => T;
9 /** This function is injected via a page-script in the main world
10 * via the InjectionService. `hash` is a unique identifier per tab
11 * and per service worker generated by the service worker. */
12 registerPassElements?: (hash: string) => void;
13 wrappedJSObject?: Window;
16 var cloneInto: Maybe<CloneInto>;
17 var exportFunction: Maybe<ExportFunction>;