declare module "@qiwi/substrate-types/target/esm/IStringMap.mjs" { export type IStringMap = { [key: string]: string; }; } declare module "@qiwi/substrate-types/target/esm/IAnyMap.mjs" { export type IAnyMap = { [key: string]: any; [key: number]: any; }; } declare module "@qiwi/substrate-types/target/esm/IEventEmitter.mjs" { export type IEventListener = (...args: any[]) => void; export type IEmitterMethod = (type: string, listener: IEventListener) => void; export interface IEventEmitter { emit(type: string, ...args: any[]): void; off: IEmitterMethod; on: IEmitterMethod; once: IEmitterMethod; } } declare module "@qiwi/substrate-types/target/esm/ILogger.mjs" { export type ILoggerMethod = (...args: any[]) => void; export enum LogLevel { ERROR = "error", WARN = "warn", INFO = "info", DEBUG = "debug", TRACE = "trace", error = "error", warn = "warn", info = "info", debug = "debug", trace = "trace" } export interface ILogger { trace: ILoggerMethod; debug: ILoggerMethod; info: ILoggerMethod; log: ILoggerMethod; warn: ILoggerMethod; error: ILoggerMethod; fatal?: ILoggerMethod; [key: string]: any; [key: number]: any; } } declare module "@qiwi/substrate-types/target/esm/IUtilGet.mjs" { export type TUtilGetPath = Array | string; export type TUtilGetObject = object; export type TUtilGetDefaultValue = any; export type TUtilGetResponse = any; export type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse; } declare module "@qiwi/substrate-types/target/esm/IUtilSet.mjs" { export type TUtilSetPath = Array | string; export type TUtilSetObject = object; export type TUtilSetValue = any; export type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void; } declare module "@qiwi/substrate-types/target/esm/IUtilEach.mjs" { export type TUtilEachCollection = any[] | object; export type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void; export type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection; } declare module "@qiwi/substrate-types/target/esm/IUtilMap.mjs" { export type TUtilMapCollection = any[] | object; export type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any; export type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[]; } declare module "@qiwi/substrate-types/target/esm/ICloneable.mjs" { export interface ICloneable { clone(): T; } } declare module "@qiwi/substrate-types/target/esm/ICurrency.mjs" { export type ICurrency = string; } declare module "@qiwi/substrate-types/target/esm/IConstructor.mjs" { export type Abstract = Function & { prototype: T; }; export type IConstructor = new (...args: A) => T; export type IClass = Abstract & IConstructor; export type IConstructable = IConstructor; } declare module "@qiwi/substrate-types/target/esm/IPromise.mjs" { import { IConstructor } from "@qiwi/substrate-types/target/esm/IConstructor.mjs"; export type TPromiseExecutor = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; export interface IPromise extends Promise { then: (onSuccess?: (value: TValue) => any, onReject?: (reason: TReason) => any) => IPromise; catch: (onReject: (reason: TReason) => any) => IPromise; readonly [Symbol.toStringTag]: string; } export interface IPromiseConstructor extends IConstructor> { new (executor: TPromiseExecutor): IPromise; all: (values: Iterable>) => IPromise; race: (values: Iterable>) => IPromise; reject: (reason?: TReason) => IPromise; resolve: (value?: TValue) => IPromise; } export const IPromise: PromiseConstructor; } declare module "@qiwi/substrate-types/target/esm/IStorage.mjs" { export type TStorageKey = string; export type TStorageValue = any; export type TStorageTTL = number; export interface IStorage { get: (key: TStorageKey) => TStorageValue; set: (key: TStorageKey, value: TStorageValue, ttl?: TStorageTTL) => void; has: (key: TStorageKey) => boolean; remove: (key: TStorageKey) => void; size: () => number; reset: () => void; } } declare module "@qiwi/substrate-types/target/esm/IMoney.mjs" { import { ICurrency } from "@qiwi/substrate-types/target/esm/ICurrency.mjs"; export type IValue = number; export interface IMoney { value: IValue; currency: ICurrency; toString: () => string; } } declare module "@qiwi/substrate-types/target/esm/ICollection.mjs" { export type ICollectionItem = any; export interface ICollection { get: (index: number | string) => T | undefined; add: (index: number | string, item: T) => T; remove: (index: number | string) => T | undefined; clear: () => void; size: number; isEmpty: () => boolean; } } declare module "@qiwi/substrate-types/target/esm/IStack.mjs" { import { ICollection } from "@qiwi/substrate-types/target/esm/ICollection.mjs"; export type IStackItem = any; export interface IStack extends ICollection { push: (...items: Array) => T; pop: () => T | undefined; unshift: (...items: Array) => T; shift: () => T | undefined; indexOf: (item: T) => number; first: () => T | undefined; last: () => T | undefined; toArray(): Array; } } declare module "@qiwi/substrate-types/target/esm/TPredicate.mjs" { export type TPredicate = (...args: any[]) => boolean; } declare module "@qiwi/substrate-types/target/esm/IConfigurable.mjs" { export interface IConfigurable { setConfig: (options?: any) => void; getConfig: () => any; } } declare module "@qiwi/substrate-types/target/esm/IConfig.mjs" { export type TConfigKey = string; export interface IConfig { set?: (key: TConfigKey, value: T) => void; get: (key: TConfigKey) => T; has: (key: TConfigKey) => boolean; delete?: (key: TConfigKey) => void; clear?: () => void; size?: number; [key: string]: any; } } declare module "@qiwi/substrate-types/target/esm/IIterable.mjs" { export interface IIteratorResult { value: any; done: boolean; } export interface IIterator { next(): { value: any; done: boolean; }; } export interface IIterable { [Symbol.iterator](): IIterator; } } declare module "@qiwi/substrate-types/target/esm/IMiddleware.mjs" { export interface IRequest { res?: IResponse; [key: string]: any; } export interface IResponse { status: (status: number) => IResponse; send: (arg: string | object) => IResponse; json: () => IResponse; req?: IRequest; [key: string]: any; } export interface INext { (...args: any[]): any; } export interface IRequestMiddleware { (req: IRequest, res: IResponse, next?: INext): void; } export interface IErrorMiddleware { (err: Error, req: IRequest, res: IResponse, next?: INext): void; } export type IMiddleware = IRequestMiddleware | IErrorMiddleware; export interface IAsyncRequestMiddleware { (req: IRequest, res: IResponse, next?: INext): Promise; } export interface IAsyncErrorMiddleware { (err: Error, req: IRequest, res: IResponse, next?: INext): Promise; } export type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware; } declare module "@qiwi/substrate-types/target/esm/IPool.mjs" { import { IPromise } from "@qiwi/substrate-types/target/esm/IPromise.mjs"; export const enum IPooledObjectStatus { READY = "ready", ACTIVE = "active", INVALID = "invalid" } export interface IPooledObject { ref: T; status: IPooledObjectStatus; activate(): void; passivate(): void; destroy(): void; validate(): boolean; [key: string]: any; } export interface IPooledObjectFactory { (...args: any[]): IPooledObject; } export interface IPool { factory: IPooledObjectFactory; borrow(): IPromise; release(instance: T): void; invalidate(instance: T): void; [key: string]: any; } } declare module "@qiwi/substrate-types/target/esm/IHttpClient.mjs" { import { IPromise } from "@qiwi/substrate-types/target/esm/IPromise.mjs"; export const enum HttpMethod { GET = "GET", DELETE = "DELETE", HEAD = "HEAD", OPTIONS = "OPTIONS", POST = "POST", PUT = "PUT", PATCH = "PATCH" } export type IHttpMethodV2 = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH'; export type IHttpHeaders = Record; export interface IHttpResponse { status: number; statusText: string; headers: IHttpHeaders; data: D; } export interface IFetchResponse { status: number; statusText: string; headers: any; json(): IPromise; body: any; } export interface IHttpRequest { url?: string; method?: HttpMethod | IHttpMethodV2; headers?: IHttpHeaders; params?: any; body?: any; data?: any; } export interface IFetch { (url: string, req?: Req): IPromise & IFetchResponse>; } export interface IHttpReqPerform { (url: string, body?: any, req?: Req): IPromise & IHttpResponse>; (url: string, req?: Req): IPromise & IHttpResponse>; } export interface IHttpClient { (req: Req): IPromise & IHttpResponse>; (url: string, req?: Req): IPromise & IHttpResponse>; get: IHttpReqPerform; post: IHttpReqPerform; put: IHttpReqPerform; patch: IHttpReqPerform; head: IHttpReqPerform; delete: IHttpReqPerform; options: IHttpReqPerform; } export type IHttpRequestProvider = IFetch | IHttpClient; } declare module "@qiwi/substrate-types/target/esm/helpers.mjs" { export type UnionToIntersection = (U extends K ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export function mkenum(x: T): T; export type EnumType = T[keyof T]; export type PrependTuple> = ((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []; export type Extends = T extends E ? R1 : R2; export type ExtendsOrNever = Extends; export type RecursivePartial = { [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial[] : T[P] extends object ? RecursivePartial : T[P]; }; export type Prev = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T]; export type GetLength = original extends { length: infer L; } ? L : never; } declare module "@qiwi/substrate-types/target/esm/IDeviceInfo.mjs" { import { RecursivePartial } from "@qiwi/substrate-types/target/esm/helpers.mjs"; export type IBrowserInfo = RecursivePartial<{ name: string | null; version: string | null; layout: string | null; }>; export type IOperationalSystemInfo = RecursivePartial<{ name: string | null; architecture: number | null; family: string | null; version: string | null; }>; export type IDeviceInfoStrict = RecursivePartial<{ browser: IBrowserInfo; model: { name: string | null; manufacturer: string | null; }; isMobile: boolean; os: IOperationalSystemInfo; }>; export type IDeviceInfo = IDeviceInfoStrict | Record; } declare module "@qiwi/substrate-types/target/esm/IClientEventDto.mjs" { import { RecursivePartial } from "@qiwi/substrate-types/target/esm/helpers.mjs"; import { IDeviceInfo } from "@qiwi/substrate-types/target/esm/IDeviceInfo.mjs"; import { LogLevel } from "@qiwi/substrate-types/target/esm/ILogger.mjs"; export enum EnvironmentProfile { CI = "ci", DEV = "development", TEST = "testing", PROD = "prod", STAGE = "staging" } type TClientEventMeta = RecursivePartial<{ appName: string; appHost: string; appVersion: string; appNamespace: string; appConfig: Record; envProfile: EnvironmentProfile; deviceInfo: IDeviceInfo; userAgent: string; }>; export type IClientEventMeta = TClientEventMeta; export interface IClientEventDto { message: string; tags?: Array; code?: string; level?: LogLevel; meta?: IClientEventMeta; details?: Record; stacktrace?: any; timestamp?: number | string; ttl?: number; } } declare module "@qiwi/substrate-types/target/esm/INormalValue.mjs" { import { UnionToIntersection } from "@qiwi/substrate-types/target/esm/helpers.mjs"; import { IAnyMap } from "@qiwi/substrate-types/target/esm/IAnyMap.mjs"; export interface IIdentified { id: string | number | symbol; } export type IWrappedValue = (W extends object[] ? UnionToIntersection : W extends object ? W : object) & { value: V; }; export type ITyped = { type: T; }; export type ITypedValue = IWrappedValue>; export type IMeted = { meta: M; }; export type IMetedValue = IWrappedValue>; export type IMetaTyped = ITyped & IMeted; export type IMetaTypedValue = IWrappedValue>; export type INormalValue = IWrappedValue, IIdentified]>; } declare module "@qiwi/substrate-types/target/esm/IFunction.mjs" { export type IFunction = (...args: A) => R; export type IFn = IFunction; export type ICallable = IFunction; export type IUnaryFunction = (a: A) => R; export type IUnaryFn = IUnaryFunction; } declare module "@qiwi/substrate-types/target/esm/IMetadata.mjs" { export interface IMetadataProvider { defineMetadata(metadataKey: any, metadataValue: any, target: any, propertyKey?: string | symbol): void; hasMetadata(metadataKey: any, target: any, propertyKey?: string | symbol): boolean; getMetadata(metadataKey: any, target: any, propertyKey?: string | symbol): any; getOwnMetadata(metadataKey: any, target: any, propertyKey?: string | symbol): any; } } declare module "@qiwi/substrate-types/target/esm/IEnableable.mjs" { export interface IEnableable { enable(): void; disable(): void; } } declare module "@qiwi/substrate-types/target/esm/IPipeline.mjs" { import { IUnaryFn } from "@qiwi/substrate-types/target/esm/IFunction.mjs"; import { INormalValue } from "@qiwi/substrate-types/target/esm/INormalValue.mjs"; export type IPipe = IUnaryFn; export type IPipeline

= Array

; export type INormalPipe = IPipe; export type INormalPipeline

= IPipeline

; } declare module "@qiwi/substrate-types/target/esm/IExtra.mjs" { export type IExtra = { [key in K]: V; }; } declare module "@qiwi/substrate-types/target/esm/INil.mjs" { export type INil = null | undefined; export type INullOrUndefined = INil; export type INullable = T | null; export type INilable = T | INil; } declare module "@qiwi/substrate-types/target/esm/IExecutionMode.mjs" { export enum IExecutionMode { SYNC = "sync", ASYNC = "async" } } declare module "@qiwi/substrate-types/target/esm/export.mjs" { export { IStringMap } from "@qiwi/substrate-types/target/esm/IStringMap.mjs"; export { IAnyMap } from "@qiwi/substrate-types/target/esm/IAnyMap.mjs"; export { IEventEmitter } from "@qiwi/substrate-types/target/esm/IEventEmitter.mjs"; export { ILogger, LogLevel, ILoggerMethod } from "@qiwi/substrate-types/target/esm/ILogger.mjs"; export { TUtilGet } from "@qiwi/substrate-types/target/esm/IUtilGet.mjs"; export { TUtilSet } from "@qiwi/substrate-types/target/esm/IUtilSet.mjs"; export { TUtilEach } from "@qiwi/substrate-types/target/esm/IUtilEach.mjs"; export { TUtilMap } from "@qiwi/substrate-types/target/esm/IUtilMap.mjs"; export { ICloneable } from "@qiwi/substrate-types/target/esm/ICloneable.mjs"; export { ICurrency } from "@qiwi/substrate-types/target/esm/ICurrency.mjs"; export { IPromiseConstructor, IPromise } from "@qiwi/substrate-types/target/esm/IPromise.mjs"; export { IStorage } from "@qiwi/substrate-types/target/esm/IStorage.mjs"; export { IMoney } from "@qiwi/substrate-types/target/esm/IMoney.mjs"; export { IStack } from "@qiwi/substrate-types/target/esm/IStack.mjs"; export { ICollection } from "@qiwi/substrate-types/target/esm/ICollection.mjs"; export { TPredicate } from "@qiwi/substrate-types/target/esm/TPredicate.mjs"; export { IConfigurable } from "@qiwi/substrate-types/target/esm/IConfigurable.mjs"; export { IConfig } from "@qiwi/substrate-types/target/esm/IConfig.mjs"; export { IConstructor, IConstructable, Abstract, IClass } from "@qiwi/substrate-types/target/esm/IConstructor.mjs"; export { IIterable, IIterator, IIteratorResult } from "@qiwi/substrate-types/target/esm/IIterable.mjs"; export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext, } from "@qiwi/substrate-types/target/esm/IMiddleware.mjs"; export { IPool, IPooledObject, IPooledObjectFactory, IPooledObjectStatus, } from "@qiwi/substrate-types/target/esm/IPool.mjs"; export { IHttpClient, IFetch, IHttpRequestProvider, HttpMethod, IHttpMethodV2, IHttpResponse, IHttpRequest, } from "@qiwi/substrate-types/target/esm/IHttpClient.mjs"; export { IClientEventDto, IClientEventMeta, EnvironmentProfile, } from "@qiwi/substrate-types/target/esm/IClientEventDto.mjs"; export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, ITyped, ITypedValue, IMeted, IMetedValue, } from "@qiwi/substrate-types/target/esm/INormalValue.mjs"; export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable, } from "@qiwi/substrate-types/target/esm/IFunction.mjs"; export { IMetadataProvider } from "@qiwi/substrate-types/target/esm/IMetadata.mjs"; export { IEnableable } from "@qiwi/substrate-types/target/esm/IEnableable.mjs"; export { IPipe, IPipeline, INormalPipe, INormalPipeline } from "@qiwi/substrate-types/target/esm/IPipeline.mjs"; export { IExtra } from "@qiwi/substrate-types/target/esm/IExtra.mjs"; export { INil, INullOrUndefined, INullable, INilable } from "@qiwi/substrate-types/target/esm/INil.mjs"; export { IExecutionMode } from "@qiwi/substrate-types/target/esm/IExecutionMode.mjs"; export { IDeviceInfo, IDeviceInfoStrict } from "@qiwi/substrate-types/target/esm/IDeviceInfo.mjs"; } declare module "@qiwi/substrate-types/target/esm/aliases.mjs" { export { IStringMap as StringMap } from "@qiwi/substrate-types/target/esm/IStringMap.mjs"; export { IAnyMap as AnyMap } from "@qiwi/substrate-types/target/esm/IAnyMap.mjs"; export { IEventEmitter as EventEmitter } from "@qiwi/substrate-types/target/esm/IEventEmitter.mjs"; export { ILogger as Logger, LogLevel, ILoggerMethod as LoggerMethod } from "@qiwi/substrate-types/target/esm/ILogger.mjs"; export { TUtilGet as UtilGet } from "@qiwi/substrate-types/target/esm/IUtilGet.mjs"; export { TUtilSet as UtilSet } from "@qiwi/substrate-types/target/esm/IUtilSet.mjs"; export { TUtilEach as UtilEach } from "@qiwi/substrate-types/target/esm/IUtilEach.mjs"; export { TUtilMap as UtilMap } from "@qiwi/substrate-types/target/esm/IUtilMap.mjs"; export { ICloneable as Cloneable } from "@qiwi/substrate-types/target/esm/ICloneable.mjs"; export { ICurrency as Currency } from "@qiwi/substrate-types/target/esm/ICurrency.mjs"; export {} from "@qiwi/substrate-types/target/esm/IPromise.mjs"; export { IStorage as Storage } from "@qiwi/substrate-types/target/esm/IStorage.mjs"; export { IMoney as Money } from "@qiwi/substrate-types/target/esm/IMoney.mjs"; export {} from "@qiwi/substrate-types/target/esm/IStack.mjs"; export { ICollection as Collection } from "@qiwi/substrate-types/target/esm/ICollection.mjs"; export { TPredicate as Predicate } from "@qiwi/substrate-types/target/esm/TPredicate.mjs"; export { IConfigurable as Configurable } from "@qiwi/substrate-types/target/esm/IConfigurable.mjs"; export { IConfig as Config } from "@qiwi/substrate-types/target/esm/IConfig.mjs"; export { IConstructor as Constructor, IConstructable as Constructable, Abstract, IClass as Class } from "@qiwi/substrate-types/target/esm/IConstructor.mjs"; export { IIterable as Iterable, IIterator as Iterator, IIteratorResult as IteratorResult } from "@qiwi/substrate-types/target/esm/IIterable.mjs"; export { IMiddleware as Middleware, IAsyncMiddleware as AsyncMiddleware, IErrorMiddleware as ErrorMiddleware, IRequestMiddleware as RequestMiddleware, IRequest as Request, IResponse as Response, INext as Next, } from "@qiwi/substrate-types/target/esm/IMiddleware.mjs"; export { IPool as Pool, IPooledObject as PooledObject, IPooledObjectFactory as PooledObjectFactory, IPooledObjectStatus as PooledObjectStatus, } from "@qiwi/substrate-types/target/esm/IPool.mjs"; export { IHttpClient as HttpClient, IFetch as Fetch, IHttpRequestProvider as HttpRequestProvider, HttpMethod, IHttpMethodV2 as HttpMethodV2, IHttpResponse as HttpResponse, IHttpRequest as HttpRequest, } from "@qiwi/substrate-types/target/esm/IHttpClient.mjs"; export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile, } from "@qiwi/substrate-types/target/esm/IClientEventDto.mjs"; export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, ITyped as Typed, ITypedValue as TypedValue, IMeted as Meted, IMetedValue as MetedValue, } from "@qiwi/substrate-types/target/esm/INormalValue.mjs"; export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable, } from "@qiwi/substrate-types/target/esm/IFunction.mjs"; export { IMetadataProvider as MetadataProvider } from "@qiwi/substrate-types/target/esm/IMetadata.mjs"; export { IEnableable as Enableable } from "@qiwi/substrate-types/target/esm/IEnableable.mjs"; export { IPipe as Pipe, IPipeline as Pipeline, INormalPipe as NormalPipe, INormalPipeline as NormalPipeline } from "@qiwi/substrate-types/target/esm/IPipeline.mjs"; export { IExtra as Extra } from "@qiwi/substrate-types/target/esm/IExtra.mjs"; export { INil as Nil, INullOrUndefined as NullOrUndefined, INullable as Nullable, INilable as Nilable } from "@qiwi/substrate-types/target/esm/INil.mjs"; export { IExecutionMode as ExecutionMode } from "@qiwi/substrate-types/target/esm/IExecutionMode.mjs"; export { IDeviceInfo as DeviceInfo, IDeviceInfoStrict as DeviceInfoStrict } from "@qiwi/substrate-types/target/esm/IDeviceInfo.mjs"; } declare module "@qiwi/substrate-types/target/esm/extras.mjs" { import { IExtra } from "@qiwi/substrate-types/target/esm/IExtra.mjs"; import { IStorage } from "@qiwi/substrate-types/target/esm/IStorage.mjs"; export type IStoreExtra = IExtra<'store', IStorage>; export type IStorageExtra = IExtra<'storage', IStorage>; } declare module "@qiwi/substrate-types/target/esm/index.mjs" { export * from "@qiwi/substrate-types/target/esm/export.mjs"; export * from "@qiwi/substrate-types/target/esm/aliases.mjs"; export * from "@qiwi/substrate-types/target/esm/helpers.mjs"; export * from "@qiwi/substrate-types/target/esm/extras.mjs"; } declare module "@qiwi/substrate-types" { export * from "@qiwi/substrate-types/target/esm/index.mjs" }