/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { FieldSet } from '../@types/index.js'; import type { FlattenedFieldValue } from './storage-row-types.js'; /** * Main entrypoint for flattening a document's (nested) field data into a flat * array of field values. * * @param fields - The field definitions for the collection. * @param data - The document's field data to flatten. * @param locale - The locale to flatten for (or 'all' to flatten all locales). */ export declare const flattenFieldSetData: (fields: FieldSet, data: unknown, locale: string) => FlattenedFieldValue[];