/** * Browser- and SSR-safe helpers from the `veryfront` package. * * This entrypoint exposes the root package's client-safe configuration, * platform, routing, data, and security helpers without server bootstrap * functions. Most app code can import these helpers from `veryfront`; use this * explicit entrypoint when a browser or SSR module needs to declare that * boundary directly. * * @example * ```ts * import { getEnv, json } from "veryfront/index.client"; * * export function GET() { * return json({ mode: getEnv("MODE") ?? "development" }); * } * ``` * * @module veryfront */ export { defineConfig, defineConfigWithEnv, mergeConfigs } from "./config/index.js"; export type { VeryfrontConfig } from "./config/index.js"; export { getEnv } from "./platform/compat/process/env.js"; export type { StartServerOptions, VeryfrontHandler, VeryfrontServer } from "./server/index.js"; export { badRequest, forbidden, internalServerError as serverError, jsonResponse as json, notFound as apiNotFound, redirectResponse as apiRedirect, unauthorized, } from "./platform/compat/http/responses.js"; export type { APIContext, APIHandler, APIResponse, APIRoute } from "./routing/index.js"; export { notFound, redirect } from "./data/index.js"; export type { DataContext, DataResponseMetadata, DataResult, InferGetServerDataProps, PageWithData, ResponseCookie, StaticDataResult, StaticPathsResult, } from "./data/index.js"; export type { MDXFrontmatter, PageContext } from "./types/index.js"; export { CommonSchemas, createValidatedHandler, createValidationError, INPUT_VALIDATION_FAILED, parseFormData, parseJsonBody, parseQueryParams, sanitizeData, } from "./security/input-validation/index.js"; export type { ValidatedHandlerConfig, ValidatedHandlerFunction, } from "./security/input-validation/index.js"; export { csrfMutationHeaders } from "./security/csrf/browser-mutation-headers.js"; export type { CsrfMutationHeadersOptions } from "./security/csrf/browser-mutation-headers.js"; //# sourceMappingURL=index.client.d.ts.map