import { IEndpointConfig } from '@subql/types-core'; import { LevelWithSilent } from 'pino'; import { HistoricalMode } from '../indexer'; export interface IConfig { readonly subquery: string; readonly subqueryName?: string; readonly dbSchema?: string; readonly batchSize: number; readonly timeout: number; readonly blockTime: number; readonly debug?: string; readonly preferRange: boolean; readonly networkEndpoint?: Record; readonly primaryNetworkEndpoint?: [string, IEndpointConfig]; readonly networkDictionary?: string[]; readonly dictionaryRegistry: string; readonly outputFmt?: 'json'; readonly logLevel: LevelWithSilent; readonly queryLimit: number; readonly indexCountLimit: number; readonly proofOfIndex: boolean; readonly ipfs?: string; readonly dictionaryTimeout: number; readonly dictionaryQuerySize: number; readonly workers?: number; readonly profiler?: boolean; readonly unsafe?: boolean; readonly subscription: boolean; readonly historical: HistoricalMode; readonly multiChain: boolean; readonly disableMultichainRewindLock: boolean; readonly reindex?: number; readonly unfinalizedBlocks?: boolean; readonly pgCa?: string; readonly pgKey?: string; readonly pgCert?: string; readonly pgPoolMin?: number; readonly pgPoolMax?: number; readonly pgPoolIdle?: number; readonly pgPoolAqcuire?: number; readonly pgPoolEvict?: number; readonly storeCacheThreshold: number; readonly storeCacheUpperLimit: number; readonly storeGetCacheSize: number; readonly storeCacheAsync: boolean; readonly storeFlushInterval: number; readonly storeCacheTarget: number; readonly isTest?: boolean; readonly root?: string; readonly allowSchemaMigration: boolean; readonly csvOutDir?: string; readonly monitorOutDir: string; readonly monitorFileSize?: number; readonly monitorObjectMaxDepth: number; readonly enableCache?: boolean; } export type MinConfig = Partial> & Pick; export declare class NodeConfig implements IConfig { protected readonly _config: C; protected readonly _isTest: boolean; static fromFile(filePath: string, configFromArgs?: Partial, isTest?: boolean): NodeConfig; static rebaseWithArgs(config: NodeConfig, configFromArgs?: Partial): NodeConfig; constructor(config: MinConfig, isTest?: boolean); get subquery(): string; get subqueryName(): string; get batchSize(): number; get networkEndpoints(): Record | undefined; get primaryNetworkEndpoint(): [string, IEndpointConfig] | undefined; get networkDictionaries(): string[] | undefined | false; get allowSchemaMigration(): boolean; get storeCacheThreshold(): number; get storeCacheUpperLimit(): number; get storeGetCacheSize(): number; get storeCacheAsync(): boolean; get storeFlushInterval(): number; get storeCacheTarget(): number; get dictionaryRegistry(): string; get timeout(): number; get blockTime(): number; get debug(): string | undefined; get preferRange(): boolean; get outputFmt(): 'json' | undefined; get logLevel(): LevelWithSilent; get queryLimit(): number; get indexCountLimit(): number; get proofOfIndex(): boolean; get dictionaryTimeout(): number; get dictionaryQuerySize(): number; get ipfs(): string | undefined; get dbSchema(): string; get workers(): number | undefined; get profiler(): boolean; get unsafe(): boolean; get subscription(): boolean; get historical(): HistoricalMode; get multiChain(): boolean; get disableMultichainRewindLock(): boolean; get unfinalizedBlocks(): boolean; get isPostgresSecureConnection(): boolean; get postgresCACert(): string | undefined; get postgresClientKey(): string | undefined; get postgresClientCert(): string | undefined; get pgPoolMax(): number | undefined; get pgPoolMin(): number | undefined; get pgPoolAqcuire(): number | undefined; get pgPoolIdle(): number | undefined; get pgPoolEvict(): number | undefined; get root(): string | undefined; get csvOutDir(): string | undefined; get monitorOutDir(): string; get monitorFileSize(): number; get monitorObjectMaxDepth(): number; get enableCache(): boolean; merge(config: Partial): this; }