html-context.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /// <reference types="react" />
  2. import type { BuildManifest } from '../../server/get-page-files';
  3. import type { ServerRuntime } from 'next/types';
  4. import type { NEXT_DATA } from './utils';
  5. import type { FontConfig } from '../../server/font-utils';
  6. export declare type HtmlProps = {
  7. __NEXT_DATA__: NEXT_DATA;
  8. dangerousAsPath: string;
  9. docComponentsRendered: {
  10. Html?: boolean;
  11. Main?: boolean;
  12. Head?: boolean;
  13. NextScript?: boolean;
  14. };
  15. buildManifest: BuildManifest;
  16. ampPath: string;
  17. inAmpMode: boolean;
  18. hybridAmp: boolean;
  19. isDevelopment: boolean;
  20. dynamicImports: string[];
  21. assetPrefix?: string;
  22. canonicalBase: string;
  23. headTags: any[];
  24. unstable_runtimeJS?: false;
  25. unstable_JsPreload?: false;
  26. devOnlyCacheBusterQueryString: string;
  27. scriptLoader: {
  28. afterInteractive?: string[];
  29. beforeInteractive?: any[];
  30. worker?: any[];
  31. };
  32. locale?: string;
  33. disableOptimizedLoading?: boolean;
  34. styles?: React.ReactElement[] | React.ReactFragment;
  35. head?: Array<JSX.Element | null>;
  36. crossOrigin?: string;
  37. optimizeCss?: any;
  38. optimizeFonts?: FontConfig;
  39. nextScriptWorkers?: boolean;
  40. runtime?: ServerRuntime;
  41. hasConcurrentFeatures?: boolean;
  42. largePageDataBytes?: number;
  43. };
  44. export declare const HtmlContext: import("react").Context<HtmlProps>;