/** * Configuration, server bootstrap, routing, data fetching, and input validation. * * @module veryfront * * @example Configuration * ```ts * import { defineConfig } from "veryfront"; * * export default defineConfig({ * // your project config * }); * ``` * * @example API routes * ```ts * import { json } from "veryfront"; * import type { APIContext, APIResponse } from "veryfront"; * * export function GET(ctx: APIContext): APIResponse { * return json({ message: "Hello" }); * } * ``` * * @example Data loading * ```ts * import { notFound } from "veryfront"; * import type { DataContext } from "veryfront"; * * export function getServerData(ctx: DataContext) { * if (!ctx.params.id) throw notFound(); * return { title: "Page" }; * } * ``` */ import "../_dnt.polyfills.js"; export { defineConfig, defineConfigWithEnv, mergeConfigs } from "./config/index.js"; export type { VeryfrontConfig } from "./config/index.js"; export { getEnv } from "./platform/index.js"; export { createHandler, startServer, toNodeHandler } from "./server/index.js"; export type { StartServerOptions, VeryfrontHandler, VeryfrontServer } from "./server/index.js"; export { badRequest, forbidden, json, notFound as apiNotFound, redirect as apiRedirect, serverError, unauthorized, } from "./routing/index.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/index.js"; export type { ApplicationIdentity, AuthClaimPrimitive, AuthClaimValue, SerializedApplicationIdentity, SerializedAuthClaims, ValidatedHandlerConfig, ValidatedHandlerFunction, } from "./security/index.js"; //# sourceMappingURL=index.d.ts.map