@nuxt/devtools-kit 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
+ import { VNode, MaybeRefOrGetter } from 'vue';
1
2
  import { BirpcGroup } from 'birpc';
2
3
  import { NuxtOptions, Component, NuxtPage, NuxtLayout, NuxtApp, Nuxt } from 'nuxt/schema';
3
4
  import { StorageMounts } from 'nitropack';
4
5
  import { StorageValue } from 'unstorage';
5
6
  import { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector';
6
- import { VNode } from 'vue';
7
7
  import { RouteRecordNormalized } from 'vue-router';
8
8
  import { Import, UnimportMeta } from 'unimport';
9
9
  import { Options } from 'execa';
@@ -115,7 +115,7 @@ interface ModuleBuiltinTab {
115
115
  title?: string;
116
116
  path?: string;
117
117
  category?: TabCategory;
118
- show?: () => any;
118
+ show?: () => MaybeRefOrGetter<any>;
119
119
  badge?: () => number | string | undefined;
120
120
  onClick?: () => void;
121
121
  }
@@ -510,4 +510,67 @@ interface InstallModuleReturn {
510
510
  processId: string;
511
511
  }
512
512
 
513
- export { VSCodeIntegrationOptions as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CompatibilityStatus as C, CodeSnippet as D, ComponentRelationship as E, WizardActions as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, GetWizardArgs as J, ServerFunctions as K, ClientFunctions as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ClientUpdateEvent as O, PackageUpdateInfo as P, NuxtDevtoolsServerContext as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, InstallModuleReturn as U, VueInspectorClient as V, WizardFunctions as W, AnalyzeBuildMeta as X, AnalyzeBuildsInfo as Y, ModuleOptions as Z, ModuleGlobalOptions as _, ModuleLaunchView as a, VSCodeTunnelOptions as a0, NuxtDevToolsUIOptions as a1, TabCategory as a2, ModuleIframeView as b, ModuleVNodeView as c, ModuleLaunchAction as d, ModuleView as e, ModuleIframeTabLazyOptions as f, ModuleBuiltinTab as g, ModuleTabInfo as h, TerminalBase as i, TerminalAction as j, TerminalInfo as k, PackageManagerName as l, NpmCommandType as m, NpmCommandOptions as n, ServerRouteInfo as o, Payload as p, PluginInfoWithMetic as q, PluginMetric as r, InstalledModuleInfo as s, ModuleStaticInfo as t, ModuleCompatibility as u, ModuleType as v, MaintainerInfo as w, VueInspectorData as x, AssetType as y, AssetInfo as z };
513
+ declare module '@nuxt/schema' {
514
+ interface NuxtHooks {
515
+ /**
516
+ * Called before devtools starts. Useful to detect if devtools is enabled.
517
+ */
518
+ 'devtools:before': () => void;
519
+ /**
520
+ * Called after devtools is initialized.
521
+ */
522
+ 'devtools:initialized': (info: NuxtDevtoolsInfo) => void;
523
+ /**
524
+ * Hooks to extend devtools tabs.
525
+ */
526
+ 'devtools:customTabs': (tabs: ModuleCustomTab[]) => void;
527
+ /**
528
+ * Retrigger update for custom tabs, `devtools:customTabs` will be called again.
529
+ */
530
+ 'devtools:customTabs:refresh': () => void;
531
+ /**
532
+ * Register a terminal.
533
+ */
534
+ 'devtools:terminal:register': (terminal: TerminalState) => void;
535
+ /**
536
+ * Write to a terminal.
537
+ *
538
+ * Returns true if terminal is found.
539
+ */
540
+ 'devtools:terminal:write': (_: {
541
+ id: string;
542
+ data: string;
543
+ }) => void;
544
+ /**
545
+ * Remove a terminal from devtools.
546
+ *
547
+ * Returns true if terminal is found and deleted.
548
+ */
549
+ 'devtools:terminal:remove': (_: {
550
+ id: string;
551
+ }) => void;
552
+ /**
553
+ * Mark a terminal as terminated.
554
+ */
555
+ 'devtools:terminal:exit': (_: {
556
+ id: string;
557
+ code?: number;
558
+ }) => void;
559
+ }
560
+ }
561
+ declare module '@nuxt/schema' {
562
+ /**
563
+ * Runtime Hooks
564
+ */
565
+ interface RuntimeNuxtHooks {
566
+ /**
567
+ * On terminal data.
568
+ */
569
+ 'devtools:terminal:data': (payload: {
570
+ id: string;
571
+ data: string;
572
+ }) => void;
573
+ }
574
+ }
575
+
576
+ export { VSCodeIntegrationOptions as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, CompatibilityStatus as C, AssetInfo as D, CodeSnippet as E, ComponentRelationship as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, WizardActions as J, GetWizardArgs as K, ClientFunctions as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, ClientUpdateEvent as O, PluginMetric as P, NuxtDevtoolsServerContext as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, InstallModuleReturn as U, VueInspectorData as V, WizardFunctions as W, AnalyzeBuildMeta as X, AnalyzeBuildsInfo as Y, ModuleOptions as Z, ModuleGlobalOptions as _, VueInspectorClient as a, VSCodeTunnelOptions as a0, NuxtDevToolsUIOptions as a1, TabCategory as a2, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, TerminalBase as k, TerminalAction as l, TerminalInfo as m, PackageUpdateInfo as n, PackageManagerName as o, NpmCommandType as p, NpmCommandOptions as q, ServerRouteInfo as r, Payload as s, PluginInfoWithMetic as t, InstalledModuleInfo as u, ModuleStaticInfo as v, ModuleCompatibility as w, ModuleType as x, MaintainerInfo as y, AssetType as z };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,12 @@
1
1
  import * as execa from 'execa';
2
2
  import * as _nuxt_schema from '@nuxt/schema';
3
3
  import { BirpcGroup } from 'birpc';
4
- import './hooks-7f0d2759.js';
5
- import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './server-ctx-607d5ba8.js';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './hooks-46874ced.js';
5
+ import 'vue';
6
6
  import 'nuxt/schema';
7
7
  import 'nitropack';
8
8
  import 'unstorage';
9
9
  import 'vite-plugin-vue-inspector';
10
- import 'vue';
11
10
  import 'vue-router';
12
11
  import 'unimport';
13
12
 
@@ -0,0 +1,4 @@
1
+ import type { Ref } from 'vue';
2
+ import type { NuxtDevtoolsIframeClient } from '../../src/_types/client-api';
3
+ export declare function onDevtoolsClientConnected(fn: (client: NuxtDevtoolsIframeClient) => void): (() => void) | undefined;
4
+ export declare function useDevtoolsClient(): Ref<NuxtDevtoolsIframeClient | undefined>;
@@ -1,9 +1,11 @@
1
- import { shallowRef, triggerRef } from 'vue';
2
-
1
+ import { shallowRef, triggerRef } from "vue";
3
2
  let clientRef;
3
+ const hasSetup = false;
4
4
  const fns = [];
5
- function onDevtoolsClientConnected(fn) {
5
+ export function onDevtoolsClientConnected(fn) {
6
6
  fns.push(fn);
7
+ if (hasSetup)
8
+ return;
7
9
  if (typeof window === "undefined")
8
10
  return;
9
11
  if (window.__NUXT_DEVTOOLS__) {
@@ -23,7 +25,7 @@ function onDevtoolsClientConnected(fn) {
23
25
  fns.splice(fns.indexOf(fn), 1);
24
26
  };
25
27
  }
26
- function useDevtoolsClient() {
28
+ export function useDevtoolsClient() {
27
29
  if (!clientRef) {
28
30
  clientRef = shallowRef();
29
31
  onDevtoolsClientConnected(setup);
@@ -38,5 +40,3 @@ function useDevtoolsClient() {
38
40
  }
39
41
  return clientRef;
40
42
  }
41
-
42
- export { onDevtoolsClientConnected, useDevtoolsClient };
package/dist/types.d.ts CHANGED
@@ -1,15 +1,73 @@
1
- import './hooks-7f0d2759.js';
2
- export { X as AnalyzeBuildMeta, Y as AnalyzeBuildsInfo, z as AssetInfo, y as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, L as ClientFunctions, O as ClientUpdateEvent, D as CodeSnippet, C as CompatibilityStatus, E as ComponentRelationship, J as GetWizardArgs, G as GitHubContributor, H as HookInfo, I as ImageMeta, U as InstallModuleReturn, s as InstalledModuleInfo, w as MaintainerInfo, g as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, _ as ModuleGlobalOptions, f as ModuleIframeTabLazyOptions, b as ModuleIframeView, d as ModuleLaunchAction, a as ModuleLaunchView, Z as ModuleOptions, t as ModuleStaticInfo, h as ModuleTabInfo, v as ModuleType, c as ModuleVNodeView, e as ModuleView, n as NpmCommandOptions, m as NpmCommandType, a1 as NuxtDevToolsUIOptions, N as NuxtDevtoolsInfo, Q as NuxtDevtoolsServerContext, l as PackageManagerName, P as PackageUpdateInfo, p as Payload, q as PluginInfoWithMetic, r as PluginMetric, R as RouteInfo, K as ServerFunctions, o as ServerRouteInfo, S as SubprocessOptions, a2 as TabCategory, j as TerminalAction, i as TerminalBase, k as TerminalInfo, T as TerminalState, $ as VSCodeIntegrationOptions, a0 as VSCodeTunnelOptions, V as VueInspectorClient, x as VueInspectorData, F as WizardActions, W as WizardFunctions } from './server-ctx-607d5ba8.js';
3
- export { b as NuxtDevtoolsClient, N as NuxtDevtoolsClientHooks, d as NuxtDevtoolsGlobal, a as NuxtDevtoolsHostClient, c as NuxtDevtoolsIframeClient } from './client-api-dfe1af35.js';
4
- import 'birpc';
5
- import 'nuxt/schema';
1
+ import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, b as ServerFunctions } from './hooks-46874ced.js';
2
+ export { X as AnalyzeBuildMeta, Y as AnalyzeBuildsInfo, D as AssetInfo, z as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, L as ClientFunctions, O as ClientUpdateEvent, E as CodeSnippet, C as CompatibilityStatus, F as ComponentRelationship, K as GetWizardArgs, G as GitHubContributor, I as ImageMeta, U as InstallModuleReturn, u as InstalledModuleInfo, y as MaintainerInfo, i as ModuleBuiltinTab, w as ModuleCompatibility, M as ModuleCustomTab, _ as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, Z as ModuleOptions, v as ModuleStaticInfo, j as ModuleTabInfo, x as ModuleType, e as ModuleVNodeView, g as ModuleView, q as NpmCommandOptions, p as NpmCommandType, a1 as NuxtDevToolsUIOptions, N as NuxtDevtoolsInfo, Q as NuxtDevtoolsServerContext, o as PackageManagerName, n as PackageUpdateInfo, s as Payload, t as PluginInfoWithMetic, R as RouteInfo, r as ServerRouteInfo, S as SubprocessOptions, a2 as TabCategory, l as TerminalAction, k as TerminalBase, m as TerminalInfo, T as TerminalState, $ as VSCodeIntegrationOptions, a0 as VSCodeTunnelOptions, J as WizardActions, W as WizardFunctions } from './hooks-46874ced.js';
3
+ import { AppConfig } from 'nuxt/schema';
4
+ import { NuxtApp } from 'nuxt/dist/app/nuxt';
5
+ import { Hookable } from 'hookable';
6
+ import { BirpcReturn } from 'birpc';
7
+ import 'vue';
6
8
  import 'nitropack';
7
9
  import 'unstorage';
8
10
  import 'vite-plugin-vue-inspector';
9
- import 'vue';
10
11
  import 'vue-router';
11
12
  import 'unimport';
12
13
  import 'execa';
13
14
  import '@nuxt/schema';
14
- import 'nuxt/dist/app/nuxt';
15
- import 'hookable';
15
+
16
+ interface NuxtDevtoolsClientHooks {
17
+ /**
18
+ * When the devtools navigates, used for persisting the current tab
19
+ */
20
+ 'devtools:navigate': (path: string) => void;
21
+ /**
22
+ * Event emitted when the component inspector is updated
23
+ */
24
+ 'host:inspector:update': (data: VueInspectorData) => void;
25
+ /**
26
+ * Event emitted when the component inspector is clicked
27
+ */
28
+ 'host:inspector:click': (baseUrl: string, file: string, line: number, column: number) => void;
29
+ /**
30
+ * Event to close the component inspector
31
+ */
32
+ 'host:inspector:close': () => void;
33
+ /**
34
+ * Triggers reactivity manually, since Vue won't be reactive across frames)
35
+ */
36
+ 'host:update:reactivity': () => void;
37
+ }
38
+ /**
39
+ * Host client from the App
40
+ */
41
+ interface NuxtDevtoolsHostClient {
42
+ nuxt: NuxtApp;
43
+ appConfig: AppConfig;
44
+ hooks: Hookable<NuxtDevtoolsClientHooks>;
45
+ inspector?: {
46
+ instance?: VueInspectorClient;
47
+ enable: () => void;
48
+ disable: () => void;
49
+ };
50
+ getClientHooksMetrics(): HookInfo[];
51
+ getClientPluginMetrics(): PluginMetric[];
52
+ reloadPage(): void;
53
+ closeDevTools(): void;
54
+ }
55
+ interface NuxtDevtoolsClient {
56
+ rpc: BirpcReturn<ServerFunctions>;
57
+ renderCodeHighlight: (code: string, lang: string, lines?: boolean, theme?: string) => {
58
+ code: string;
59
+ supported: boolean;
60
+ };
61
+ renderMarkdown: (markdown: string) => string;
62
+ colorMode: string;
63
+ extendClientRpc: <ServerFunctions = {}, ClientFunctions = {}>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
64
+ }
65
+ interface NuxtDevtoolsIframeClient {
66
+ host: NuxtDevtoolsHostClient;
67
+ devtools: NuxtDevtoolsClient;
68
+ }
69
+ interface NuxtDevtoolsGlobal {
70
+ setClient(client: NuxtDevtoolsHostClient): void;
71
+ }
72
+
73
+ export { HookInfo, NuxtDevtoolsClient, NuxtDevtoolsClientHooks, NuxtDevtoolsGlobal, NuxtDevtoolsHostClient, NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, VueInspectorClient, VueInspectorData };
@@ -1 +1 @@
1
- export * from './dist/iframe-client'
1
+ export * from './dist/runtime/iframe-client'
@@ -0,0 +1 @@
1
+ export * from './dist/runtime/iframe-client'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit",
3
3
  "type": "module",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "license": "MIT",
6
6
  "repository": "nuxt/devtools",
7
7
  "exports": {
@@ -17,8 +17,7 @@
17
17
  },
18
18
  "./iframe-client": {
19
19
  "types": "./iframe-client.d.ts",
20
- "require": "./dist/iframe-client.cjs",
21
- "import": "./dist/iframe-client.mjs"
20
+ "import": "./iframe-client.mjs"
22
21
  }
23
22
  },
24
23
  "main": "./dist/index.cjs",
@@ -34,17 +33,17 @@
34
33
  "vite": "*"
35
34
  },
36
35
  "dependencies": {
37
- "@nuxt/kit": "^3.5.0",
38
- "@nuxt/schema": "^3.5.0",
36
+ "@nuxt/kit": "^3.5.1",
37
+ "@nuxt/schema": "^3.5.1",
39
38
  "execa": "^7.1.1"
40
39
  },
41
40
  "devDependencies": {
42
41
  "birpc": "^0.2.11",
43
42
  "hookable": "^5.5.3",
44
43
  "unbuild": "^1.2.1",
45
- "unimport": "^3.0.6",
44
+ "unimport": "^3.0.7",
46
45
  "vite-plugin-vue-inspector": "^3.4.2",
47
- "vue-router": "^4.2.0"
46
+ "vue-router": "^4.2.1"
48
47
  },
49
48
  "scripts": {
50
49
  "build": "unbuild",
@@ -1,64 +0,0 @@
1
- import { AppConfig } from 'nuxt/schema';
2
- import { NuxtApp } from 'nuxt/dist/app/nuxt';
3
- import { Hookable } from 'hookable';
4
- import { BirpcReturn } from 'birpc';
5
- import { x as VueInspectorData, V as VueInspectorClient, H as HookInfo, r as PluginMetric, K as ServerFunctions } from './server-ctx-607d5ba8.js';
6
-
7
- interface NuxtDevtoolsClientHooks {
8
- /**
9
- * When the devtools navigates, used for persisting the current tab
10
- */
11
- 'devtools:navigate': (path: string) => void;
12
- /**
13
- * Event emitted when the component inspector is updated
14
- */
15
- 'host:inspector:update': (data: VueInspectorData) => void;
16
- /**
17
- * Event emitted when the component inspector is clicked
18
- */
19
- 'host:inspector:click': (baseUrl: string, file: string, line: number, column: number) => void;
20
- /**
21
- * Event to close the component inspector
22
- */
23
- 'host:inspector:close': () => void;
24
- /**
25
- * Triggers reactivity manually, since Vue won't be reactive across frames)
26
- */
27
- 'host:update:reactivity': () => void;
28
- }
29
- /**
30
- * Host client from the App
31
- */
32
- interface NuxtDevtoolsHostClient {
33
- nuxt: NuxtApp;
34
- appConfig: AppConfig;
35
- hooks: Hookable<NuxtDevtoolsClientHooks>;
36
- inspector?: {
37
- instance?: VueInspectorClient;
38
- enable: () => void;
39
- disable: () => void;
40
- };
41
- getClientHooksMetrics(): HookInfo[];
42
- getClientPluginMetrics(): PluginMetric[];
43
- reloadPage(): void;
44
- closeDevTools(): void;
45
- }
46
- interface NuxtDevtoolsClient {
47
- rpc: BirpcReturn<ServerFunctions>;
48
- renderCodeHighlight: (code: string, lang: string, lines?: boolean, theme?: string) => {
49
- code: string;
50
- supported: boolean;
51
- };
52
- renderMarkdown: (markdown: string) => string;
53
- colorMode: string;
54
- extendClientRpc: <ServerFunctions = {}, ClientFunctions = {}>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>;
55
- }
56
- interface NuxtDevtoolsIframeClient {
57
- host: NuxtDevtoolsHostClient;
58
- devtools: NuxtDevtoolsClient;
59
- }
60
- interface NuxtDevtoolsGlobal {
61
- setClient(client: NuxtDevtoolsHostClient): void;
62
- }
63
-
64
- export { NuxtDevtoolsClientHooks as N, NuxtDevtoolsHostClient as a, NuxtDevtoolsClient as b, NuxtDevtoolsIframeClient as c, NuxtDevtoolsGlobal as d };
@@ -1,64 +0,0 @@
1
- import { N as NuxtDevtoolsInfo, M as ModuleCustomTab, T as TerminalState } from './server-ctx-607d5ba8.js';
2
-
3
- declare module '@nuxt/schema' {
4
- interface NuxtHooks {
5
- /**
6
- * Called before devtools starts. Useful to detect if devtools is enabled.
7
- */
8
- 'devtools:before': () => void;
9
- /**
10
- * Called after devtools is initialized.
11
- */
12
- 'devtools:initialized': (info: NuxtDevtoolsInfo) => void;
13
- /**
14
- * Hooks to extend devtools tabs.
15
- */
16
- 'devtools:customTabs': (tabs: ModuleCustomTab[]) => void;
17
- /**
18
- * Retrigger update for custom tabs, `devtools:customTabs` will be called again.
19
- */
20
- 'devtools:customTabs:refresh': () => void;
21
- /**
22
- * Register a terminal.
23
- */
24
- 'devtools:terminal:register': (terminal: TerminalState) => void;
25
- /**
26
- * Write to a terminal.
27
- *
28
- * Returns true if terminal is found.
29
- */
30
- 'devtools:terminal:write': (_: {
31
- id: string;
32
- data: string;
33
- }) => void;
34
- /**
35
- * Remove a terminal from devtools.
36
- *
37
- * Returns true if terminal is found and deleted.
38
- */
39
- 'devtools:terminal:remove': (_: {
40
- id: string;
41
- }) => void;
42
- /**
43
- * Mark a terminal as terminated.
44
- */
45
- 'devtools:terminal:exit': (_: {
46
- id: string;
47
- code?: number;
48
- }) => void;
49
- }
50
- }
51
- declare module '@nuxt/schema' {
52
- /**
53
- * Runtime Hooks
54
- */
55
- interface RuntimeNuxtHooks {
56
- /**
57
- * On terminal data.
58
- */
59
- 'devtools:terminal:data': (payload: {
60
- id: string;
61
- data: string;
62
- }) => void;
63
- }
64
- }
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- const vue = require('vue');
4
-
5
- let clientRef;
6
- const fns = [];
7
- function onDevtoolsClientConnected(fn) {
8
- fns.push(fn);
9
- if (typeof window === "undefined")
10
- return;
11
- if (window.__NUXT_DEVTOOLS__) {
12
- fns.forEach((fn2) => fn2(window.__NUXT_DEVTOOLS__));
13
- }
14
- Object.defineProperty(window, "__NUXT_DEVTOOLS__", {
15
- set(value) {
16
- if (value)
17
- fns.forEach((fn2) => fn2(value));
18
- },
19
- get() {
20
- return clientRef.value;
21
- },
22
- configurable: true
23
- });
24
- return () => {
25
- fns.splice(fns.indexOf(fn), 1);
26
- };
27
- }
28
- function useDevtoolsClient() {
29
- if (!clientRef) {
30
- clientRef = vue.shallowRef();
31
- onDevtoolsClientConnected(setup);
32
- }
33
- function setup(client) {
34
- clientRef.value = client;
35
- if (client.host) {
36
- client.host.hooks.hook("host:update:reactivity", () => {
37
- vue.triggerRef(clientRef);
38
- });
39
- }
40
- }
41
- return clientRef;
42
- }
43
-
44
- exports.onDevtoolsClientConnected = onDevtoolsClientConnected;
45
- exports.useDevtoolsClient = useDevtoolsClient;
@@ -1,19 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { c as NuxtDevtoolsIframeClient } from './client-api-dfe1af35.js';
3
- import 'nuxt/schema';
4
- import 'nuxt/dist/app/nuxt';
5
- import 'hookable';
6
- import 'birpc';
7
- import './server-ctx-607d5ba8.js';
8
- import 'nitropack';
9
- import 'unstorage';
10
- import 'vite-plugin-vue-inspector';
11
- import 'vue-router';
12
- import 'unimport';
13
- import 'execa';
14
- import '@nuxt/schema';
15
-
16
- declare function onDevtoolsClientConnected(fn: (client: NuxtDevtoolsIframeClient) => void): (() => void) | undefined;
17
- declare function useDevtoolsClient(): Ref<NuxtDevtoolsIframeClient | undefined>;
18
-
19
- export { onDevtoolsClientConnected, useDevtoolsClient };