import type { internal } from '@launchdarkly/js-sdk-common'; import { ItemDescriptor } from '../flag-manager/ItemDescriptor'; import { FlagEvaluationResult } from '../types'; /** * ObjProcessor for the `flag-eval` object kind. Used by the protocol handler to * process objects received in `put-object` events. * * Client-side evaluation results are already in their final form (pre-evaluated * by the server), so no transformation is needed — this is a passthrough. */ export declare function processFlagEval(object: unknown): FlagEvaluationResult; /** * Converts an FDv2 {@link internal.Update} with `kind: 'flag-eval'` into an * {@link ItemDescriptor} suitable for {@link FlagManager}. * * For put updates the envelope `version` is used as the {@link ItemDescriptor.version} * and as {@link Flag.version}. The rest of the fields are spread from the * {@link FlagEvaluationResult} object. * * For delete updates a tombstone descriptor is created with `deleted: true`. */ export declare function flagEvalUpdateToItemDescriptor(update: internal.Update): ItemDescriptor; /** * Converts an array of FDv2 payload updates into a map of flag key to * {@link ItemDescriptor}. Only `flag-eval` kind updates are processed; * unrecognized kinds are silently ignored. */ export declare function flagEvalPayloadToItemDescriptors(updates: internal.Update[]): { [key: string]: ItemDescriptor; }; //# sourceMappingURL=flagEvalMapper.d.ts.map