import nosecone, { NoseconeOptions, Options, Options as Options$1, defaults as defaults$1, withVercelToolbar } from "nosecone"; //#region src/index.d.ts type BaseDirectives = (typeof defaults$1)["contentSecurityPolicy"]["directives"]; /** * Nosecone Next.js defaults. * * The type spells out the concrete directive shape rather than the wider * `Options`: consumers extend the defaults by spreading * `defaults.contentSecurityPolicy.directives`, so every directive must stay * a concrete readonly array, as it was before `isolatedDeclarations` required * an explicit annotation here. Everything is derived from `typeof * baseDefaults` so the type cannot drift from the `nosecone` package. */ declare const defaults: Omit & { readonly contentSecurityPolicy: { readonly directives: Omit & { readonly scriptSrc: readonly (BaseDirectives["scriptSrc"][number] | ReturnType[number])[]; readonly styleSrc: readonly (BaseDirectives["styleSrc"][number] | ReturnType[number])[]; }; }; }; declare function createNonce(): `'nonce-${string}'`; declare function nextScriptSrc(): readonly [typeof createNonce, "'unsafe-eval'"] | readonly [typeof createNonce]; /** * Get the `Content-Security-Policy` nonce for the current request. * * Nosecone generates a unique nonce for every request when the * `Content-Security-Policy` is configured with our defaults. Next.js applies * that nonce to the scripts it renders automatically, but third-party scripts * that do not use the Next.js `