import type { PageComponent, PageRoute } from '@toddledev/core/dist/component/component.types'; import type { FormulaContext, ToddleServerEnv } from '@toddledev/core/dist/formula/formula'; import type { ProjectFiles } from '../ssr.types'; /** * Builds a FormulaContext that can be used to evaluate formulas for a page component * It also initializes data->Variables with their initial values based on the FormulaContext */ export declare const getPageFormulaContext: ({ branchName, component, req, logErrors, files, }: { branchName: string; component: PageComponent; req: Request; logErrors: boolean; files: ProjectFiles; }) => FormulaContext & { env: ToddleServerEnv; }; export declare const getServerToddleObject: (files: ProjectFiles) => FormulaContext["toddle"]; export declare const getDataUrlParameters: ({ route, req, }: { route: Pick; req: Request; }) => {}; export declare const getParameters: ({ route, req, }: { route?: Pick; req: Request; }) => { pathParams: {} | undefined; searchParamsWithDefaults: { [x: string]: string | null; }; combinedParams: {}; hash: string; url: URL; }; export declare const serverEnv: ({ branchName, req, logErrors, }: { branchName: string; req: Request; logErrors: boolean; }) => ToddleServerEnv;