export declare function filterArray(array: T[], id_in?: string[]): T[]; /** * A GraphQL VALIDATION error naming an entity, field or argument this * deployment's subgraph does not have. A network error, a timeout or an * indexing error is not one. */ export declare function isMissingEntityError(error: unknown): boolean; /** * The only failure a history read (`getYieldHistory`, `getPoolTvlHistory`) * turns into `[]`: a missing-schema error * on a LITE deployment, whose subgraph may predate the entities. On a full * deployment the entities are part of the schema, so the same error means a * broken query or subgraph and THROWS — an empty chart there would hide it. * Everything else (network, timeout, indexing) throws on every deployment, so * a consumer can tell "no history here" from "history unavailable". */ export declare function isEmptyHistoryError(error: unknown, liteDeployment: boolean): boolean; /** * True when a failed RPC read says the node cannot serve state at the block * asked for (pruned, or not reached yet) — and ONLY then. A rate limit, a * timeout, a refused connection or a revert is not this, and must surface as * the error it is. */ export declare function isBlockUnavailableError(error: unknown): boolean;