import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'; import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue.js'; /** * Fold form-table rows back into the structured body object. * * Inverse of `getStructuredBodyRows`: dotted names fold into nested objects only when * the schema declares the top segment as a nested object (same predicate the multipart * builder uses), so a user-typed literal key like `user.email` on an undeclared prefix * stays flat. Values come back from the table as strings and are restored to their * schema-declared type; undeclared leaves get best-effort JSON coercion so untouched * numbers/booleans survive a form round-trip. * * Disabled rows and empty values are omitted — leaving a field empty is how a user * drops an optional property from the body. */ export declare const foldStructuredBodyRows: (rows: TableRow[], schema?: SchemaObject) => Record; //# sourceMappingURL=fold-structured-body-rows.d.ts.map