import type { ServerSourceConfigExtension } from '@modern-js/runtime-extensions/server-config'; export type ServerGlobalVarsOptions = ServerSourceConfigExtension['globalVars']; /** Each global name mapped to the JSON source text that replaces it. */ export type SerializedServerGlobalVars = Record; /** * Resolves `source.globalVars` for BFF server code and serializes every value * to the JSON text that replaces it. Dev source loading and build output use * this one function, so both see the same values. A value without an exact * JSON form (such as `undefined`, a function or a BigInt) is rejected. */ export declare const serializeServerGlobalVars: (options: ServerGlobalVarsOptions) => SerializedServerGlobalVars;