You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
669 B

1 month ago
  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 {};