import type { Container, ExtractDependencyType } from '@tinkoff/dippy'; import type { Event, Reducer } from '@tramvai/state'; import type { Action, TramvaiAction } from '@tramvai/core'; import type { STORE_TOKEN, PUBSUB_TOKEN, CONTEXT_TOKEN, DISPATCHER_CONTEXT_TOKEN } from '@tramvai/tokens-common'; import type { PlatformAction } from './typings'; type ContextType = typeof CONTEXT_TOKEN; type Deps = { di: Container; dispatcherContext: ExtractDependencyType; pubsub: ExtractDependencyType; store: ExtractDependencyType; }; export declare class ConsumerContext implements ContextType { di: Deps['di']; pubsub: Deps['pubsub']; private dispatcher; private store; executeAction: (action: PlatformAction | Action | TramvaiAction, payload?: any) => Promise; dispatch: (actionOrNameEvent: string | Event, payload?: Payload | undefined) => Promise; dispatchWith: (createActionOrType: (...args: unknown[]) => Event | Event, options?: any) => (...args: unknown[]) => Promise; /** * @deprecated */ getStore: ContextType['getStore']; dehydrate: () => { dispatcher: { stores: Record; }; }; getState: ContextType['getState']; subscribe: ContextType['subscribe']; hasStore: (store: Reducer) => boolean; registerStore: (store: Reducer) => void; unregisterStore: (store: Reducer) => void; constructor({ di, dispatcherContext, pubsub, store }: Deps); } export declare function createConsumerContext({ di, dispatcherContext, pubsub, store }: Deps): ContextType; export {}; //# sourceMappingURL=createConsumerContext.d.ts.map