import type { ExampleObject, RequestBodyObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'; /** * Generate a write-mode example directly from a request body's schema, ignoring any stored example. * * This is the schema-generation half of {@link getExampleFromBody}. It is exposed on its own so * callers that need to regenerate a body for a freshly selected composition branch (rather than the * edited example that would otherwise shadow it) produce the exact same value the initial example * does. Data generation deep-resolves nested `$ref` members. XML retains reference sites so node * naming and version-specific wrappers survive serialization. * * Returns `undefined` when there is no schema for the content type. */ export declare const getSchemaExampleFromBody: (requestBody: RequestBodyObject, contentType: string, requestBodyCompositionSelection?: Record, openapiVersion?: string) => unknown; /** * Basically getExample + we generate an example from the schema if no example is found */ export declare const getExampleFromBody: (requestBody: RequestBodyObject, contentType: string, exampleName: string, requestBodyCompositionSelection?: Record, openapiVersion?: string) => ExampleObject | null; //# sourceMappingURL=get-request-body-example.d.ts.map