/** * 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 StoreType } from './field-store-map.js'; import type { FieldSet } from '../@types/index.js'; /** * Given a CollectionDefinition and a list of field names, determine which * StoreTypes are needed to satisfy the query. This enables selective field * loading — instead of a 7-table UNION ALL, we query only the relevant stores. * * Field names that don't match a collection field (e.g. 'status', 'updated_at') * are silently ignored — they come from the document version row, not EAV stores. * * Structure fields (array, blocks) recursively include all their children's * store types plus 'meta' for _id/_type tracking. */ export declare function resolveStoreTypes(fields: FieldSet, fieldNames: string[]): Set;