//#region src/server/pages-document-asset-props.d.ts
type DocumentAssetProps = {
  headNonce?: string;
  headCrossOrigin?: string;
  scriptNonce?: string;
  scriptCrossOrigin?: string;
};
type ApplyDocumentAssetPropsOptions = {
  configuredCrossOrigin?: string;
  protectedAssetMarker?: string;
  scriptOwner?: "head" | "next-script";
};
declare function extractDocumentAssetProps(html: string): {
  html: string;
  props: DocumentAssetProps;
};
/**
 * Protect asset tags whose attributes already have a more specific owner while
 * Vite runs its HTML transforms. Tags injected by Vite after this marker pass
 * remain unmarked, so Document/config props can still be applied to them.
 */
declare function markDocumentAssetPropsProtectedTags(html: string, markerAttribute: string): string;
declare function stripDocumentAssetPropsProtectionMarkers(html: string, markerAttribute: string): string;
declare function applyDocumentAssetProps(html: string, props: DocumentAssetProps, options?: ApplyDocumentAssetPropsOptions): string;
//#endregion
export { DocumentAssetProps, applyDocumentAssetProps, extractDocumentAssetProps, markDocumentAssetPropsProtectedTags, stripDocumentAssetPropsProtectionMarkers };