proxy.d.ts 669 B

1234567891011121314151617181920
  1. import type { Context, DevtoolsPluginApi, Hookable } from './api/index.js';
  2. import type { PluginDescriptor } from './plugin.js';
  3. interface QueueItem {
  4. method: string;
  5. args: any[];
  6. resolve?: (value?: any) => void;
  7. }
  8. export declare class ApiProxy<TTarget extends DevtoolsPluginApi<any> = DevtoolsPluginApi<any>> {
  9. target: TTarget | null;
  10. targetQueue: QueueItem[];
  11. proxiedTarget: TTarget;
  12. onQueue: QueueItem[];
  13. proxiedOn: Hookable<Context>;
  14. plugin: PluginDescriptor;
  15. hook: any;
  16. fallbacks: Record<string, any>;
  17. constructor(plugin: PluginDescriptor, hook: any);
  18. setRealTarget(target: TTarget): Promise<void>;
  19. }
  20. export {};