import { ChainScoped, DataResponse } from "../../model/response.js"; import "../../model/index.js"; import { MergeListResult } from "./types.js"; //#region src/sdk/utils/mergeChains.d.ts /** * How many seconds the backend may lag the chain and still be used. **/ export declare const DEFAULT_MAX_OFFCHAIN_LAG = 120; /** * Merges two lists chain by chain: a chain is served by the backend when it is * within `maxLagSeconds` of the chain, by the chain otherwise, and reported as * an error when neither source succeeded. Answers with an envelope as soon as * either side has arrived, see {@link MergeListResult}. **/ export declare function mergeChainList | undefined, Offchain extends DataResponse | undefined>(onchain: Onchain, offchain: Offchain, maxLagSeconds?: number): MergeListResult; /** * Merges two versions of one entity under the same freshness rule as * {@link mergeChainList}, returning the winning response whole. **/ export declare function mergeChainOne(onchain: DataResponse | undefined, offchain: DataResponse | undefined, maxLagSeconds?: number): DataResponse | undefined; //#endregion