import type { Program } from "../core/program.js";
import { type Type, type Value } from "../core/types.js";
import { type EncodeData } from "./decorators.js";
/**
 * Serialize the given TypeSpec value as a JSON object using the given type and its encoding annotations.
 * The Value MUST be assignable to the given type.
 */
export declare function serializeValueAsJson(program: Program, value: Value, type: Type, encodeAs?: EncodeData): unknown;
//# sourceMappingURL=examples.d.ts.map