import type { SchemaObject } from '../../schemas/v3.2/strict/openapi-document.js'; import { EXAMPLE_EVALUATION } from '../builder/helpers/example-evaluation.js'; import { type GetExampleFromSchemaOptions } from '../builder/helpers/get-example-from-schema.js'; import { type WriteXmlOptions } from './write-xml.js'; import type { XmlDiagnostic, XmlExampleResult } from './xml-node.js'; /** XML options share the data generator's value and branch-selection policies. */ export type XmlExampleOptions = Omit & WriteXmlOptions & { /** Version-specific XML defaults. Existing descriptions default to OpenAPI 3.1 behavior. */ openapiVersion?: string; /** Context retained by callers before resolving a component reference. */ rootName?: string; /** Keep composition-selection keys aligned with the request editor. */ schemaPath?: string[]; /** Receives diagnostics; errors otherwise appear in the developer console instead of failing silently. */ onDiagnostic?: (diagnostic: XmlDiagnostic) => void; }; /** Generate XML using the same value evaluator and selected branches as JSON examples. */ export declare const getXmlExampleFromSchema: (schema: SchemaObject, options?: XmlExampleOptions) => XmlExampleResult; /** Serialize schema-ready example data. Serialized XML strings bypass this function at the media boundary. */ export declare const serializeXmlExample: (value: unknown, schema: SchemaObject, options?: XmlExampleOptions) => XmlExampleResult; //# sourceMappingURL=get-xml-example.d.ts.map