import { Context, CurrencyConfig } from "@ledgerhq/coin-module-framework/config"; /** Resolved coin configuration for Near. */ export type NearConfig = CurrencyConfig & { infra: { API_NEAR_PRIVATE_NODE: string; API_NEAR_PUBLIC_NODE: string; API_NEAR_INDEXER: string; API_NEARBLOCKS_INDEXER: string; }; /** Legacy account sync tuning. Absent means every default below applies. */ sync?: { /** * Read the nearblocks history and list the staking pools only when the account state on the * node changed. `false` reads both on every sync, as the legacy sync did before. * @default true */ stateDriven?: boolean; }; }; export declare const DEFAULT_SYNC_STATE_DRIVEN = true; export declare const isStateDrivenSync: (config: NearConfig) => boolean; /** * Legacy config accessor kept for the classic bridge path and the getCoinConfig() singleton that the * network/logic layers resolve config through. The new Alpaca `api/` path threads a {@link NearContext}. */ export type NearCoinConfig = () => NearConfig; /** The {@link Context} threaded through the coin-near Alpaca api layer (ADR-019). */ export type NearContext = Context; export declare const setCoinConfig: (config: NearCoinConfig) => void; export declare const getCoinConfig: () => ReturnType; export declare const nearDefaults: { near: { status: { type: "active"; features: ({ id: "blockchain_txs"; status: "active"; } | { id: "staking_txs"; status: "active"; })[]; }; name: string; unit: { name: string; code: string; magnitude: number; }; infra: { API_NEAR_PRIVATE_NODE: string; API_NEAR_PUBLIC_NODE: string; API_NEAR_INDEXER: string; API_NEARBLOCKS_INDEXER: string; }; }; }; //# sourceMappingURL=config.d.ts.map