import type { IRenderHtmlResult } from "../../../commands/build-html";
import { IGatsbySlice } from "../../../internal";
type IUnsafeBuiltinUsage = Array | undefined;
declare global {
namespace NodeJS {
interface Global {
unsafeBuiltinUsage: IUnsafeBuiltinUsage;
}
}
}
export declare const renderHTMLProd: ({ htmlComponentRendererPath, paths, envVars, sessionId, webpackCompilationHash, }: {
htmlComponentRendererPath: string;
paths: Array;
envVars: Array<[string, string | undefined]>;
sessionId: number;
webpackCompilationHash: string;
}) => Promise;
export declare const renderHTMLDev: ({ htmlComponentRendererPath, paths, envVars, sessionId, }: {
htmlComponentRendererPath: string;
paths: Array;
envVars: Array<[string, string | undefined]>;
sessionId: number;
}) => Promise>;
export declare function renderPartialHydrationProd({ paths, envVars, sessionId, pathPrefix, }: {
paths: Array;
envVars: Array<[string, string | undefined]>;
sessionId: number;
pathPrefix: any;
}): Promise;
export interface IRenderSliceResult {
chunks: 2 | 1;
}
export interface IRenderSlicesResults {
[sliceName: string]: IRenderSliceResult;
}
export interface ISlicePropsEntry {
sliceId: string;
sliceName: string;
props: Record;
hasChildren: boolean;
}
export declare function renderSlices({ slices, htmlComponentRendererPath, publicDir, slicesProps, staticQueriesBySliceTemplate, }: {
publicDir: string;
slices: Array<[string, IGatsbySlice]>;
slicesProps: Array;
htmlComponentRendererPath: string;
staticQueriesBySliceTemplate: Record>;
}): Promise;
export {};