import type { MarkdownRenderingOptions } from '@astrojs/markdown-remark'; import type { Params, SSRElement, SSRLoadedRenderer, SSRResult } from '../../@types/astro'; import { AstroCookies } from '../cookies/index.js'; import { type LogOptions } from '../logger/core.js'; export interface CreateResultArgs { /** * Used to provide better error messages for `Astro.clientAddress` */ adapterName: string | undefined; /** * Value of Astro config's `output` option, true if "server" or "hybrid" */ ssr: boolean; logging: LogOptions; /** * Used to support `Astro.__renderMarkdown` for legacy `` component */ markdown: MarkdownRenderingOptions; params: Params; pathname: string; renderers: SSRLoadedRenderer[]; clientDirectives: Map; compressHTML: boolean; resolve: (s: string) => Promise; /** * Used for `Astro.site` */ site: string | undefined; links?: Set; scripts?: Set; styles?: Set; componentMetadata?: SSRResult['componentMetadata']; request: Request; status: number; locals: App.Locals; cookies?: AstroCookies; } export declare function createResult(args: CreateResultArgs): SSRResult;