import { $fetch } from "ofetch";import { $Fetch, NitroFetchRequest } from "../types";if (!globalThis.$fetch) { globalThis.$fetch = $fetch as $Fetch<unknown, NitroFetchRequest>;}
import type { NitroFetchRequest } from 'nitropack'export function useFetchWithDefaultOptions<T extends NitroFetchRequest>(url: T) { return $fetch<unknown, T>(url, { headers: { defaultHeader: 'value', }, })}