/* eslint-disable no-redeclare */ import { useNuxtApp } from '#app' export function useRequestHeaders (include: K[]): Record; export function useRequestHeaders (): Readonly>; export function useRequestHeaders (include?) { if (process.client) { return {} } const headers: Record = useNuxtApp().ssrContext?.req.headers ?? {} if (!include) { return headers } return Object.fromEntries(include.map(key => [key, headers[key]])) }