/** * Copyright 2024-2026 Wingify Software Pvt. Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Flag } from './GetFlag'; import { IWingifyOptions } from '../models/WingifyOptionsModel'; import { ServiceContainer } from '../services/ServiceContainer'; /** * Batch feature-flag evaluation used by WingifyClient.getFlags. */ export declare class GetFlagsApi { /** * Evaluates multiple feature flags in MEG-safe batches; unknown or failed keys become disabled Flags. * Node runs independent batches in parallel via ALS; browser evaluates sequentially via a queue. * * @param flagNames - Feature keys to evaluate, or null/empty for all settings features. * @param baseContextCopy - Validated plain context object shared across evaluations. * @param serviceContainer - Shared SDK service container. * @param options - SDK init options used to build per-flag ContextModel instances. * @param shouldSendTrackingCalls - When false, suppresses tracking/impression network calls. * @param shouldSendMAU - When false, suppresses MAU tracking calls. * @returns Evaluated flags keyed by feature key (disabled Flag for unknown/failed keys). */ static get( flagNames: string[] | null | undefined, baseContextCopy: Record, serviceContainer: ServiceContainer, options: IWingifyOptions, shouldSendTrackingCalls?: boolean, // Default to true so that tracking calls are sent in case of getFlags. shouldSendMAU?: boolean, ): Promise>; }