import { EngineService } from '../../engine'; import { ILogger } from '../../logger'; import { StoreService } from '../../store'; import { ActivityData, ActivityLeg, ActivityMetadata, ActivityType } from '../../../types/activity'; import { JobState } from '../../../types/job'; import { ProviderClient, ProviderTransaction } from '../../../types/provider'; import { StringAnyType } from '../../../types/serializer'; import { StreamStatus } from '../../../types/stream'; interface StateContext { config: ActivityType; context: JobState; metadata: ActivityMetadata; store: StoreService; engine: EngineService; logger: ILogger; status: StreamStatus; data: ActivityData; leg: ActivityLeg; getJobStatus(): number | null; authorizeEntry(state: StringAnyType): string[]; resolveDad(): string; getTriggerConfig(): Promise; bindJobMetadataPaths(): string[]; bindActivityMetadataPaths(): string[]; assertGenerationalId(jobGID: string, msgGID: string): void; initDimensionalAddress(dad: string): void; initSelf(context: StringAnyType): JobState; initPolicies(context: JobState): void; } export declare function setState(instance: StateContext, transaction?: ProviderTransaction): Promise; export declare function getState(instance: StateContext): Promise; export declare function setStatus(instance: StateContext, amount: number, transaction?: ProviderTransaction): Promise; export declare function bindJobMetadata(_instance: StateContext): void; export declare function bindActivityMetadata(instance: StateContext): void; export declare function bindJobState(instance: StateContext, state: StringAnyType): Promise; export declare function bindActivityState(instance: StateContext, state: StringAnyType): void; export declare function bindDimensionalAddress(instance: StateContext, state: StringAnyType): void; export declare function bindJobMetadataPaths(): string[]; export declare function bindActivityMetadataPaths(leg: ActivityLeg): string[]; export {};