import { DocumentBodyNode, DocumentNode } from '@neuledge/states-parser'; import { Either } from './either'; import { Entity } from './entity'; import { Mutation } from './mutation'; import { CustomScalar } from './scalar'; import { State } from './state'; export declare class StatesContext { private readonly entityMap; private readonly mutationMap; private parent?; private processing; scalars(): Generator; states(): Generator; eithers(): Generator; entities(type?: T | null): Generator; entity(name: N): Entity | undefined; mutation(stateName: string, name: string): Mutation | undefined; exec(source: string, filepath?: string): Promise; load(inputs: { source: string; filepath?: string; }[]): Promise; private embed; register(node: DocumentBodyNode): void; private registerEntity; private registerEither; private registerState; private registerStateRelations; private registerStateTransforms; private registerMutation; private registerEitherMutations; process(): void; /** * Assign the given `fields` dictionary with the fields of the given `node` state. * Return the calculated base index of the state. */ private assignStateFields; private parseStateField; } //# sourceMappingURL=context.d.ts.map