import { _ImplementedOperationTypes } from "./implementation"; declare const _operationType: unique symbol; declare const _resultType: unique symbol; declare const _type: unique symbol; declare const _executorContext: unique symbol; export interface Executor { readonly [_type]: 'Executor'; readonly [_executorContext]: (context: Context) => void; } export declare class OperationType { readonly name: string; readonly [_operationType]: Op; readonly [_resultType]: Result; readonly [_type]: 'OperationType'; constructor(name: string); implementAs(executor: (operation: Op, context: Context, operationType: this) => Promise): Executor; execute(operation: Op, context: Context, executor: Executor): Promise; execute(operation: Op, fn: (operation: Op, operationType: this) => Promise): Promise; } export declare type ExecutorContextType> = ExecutorType extends Executor ? context : never; export declare type OperationArgumentType> = Type[typeof _operationType]; export declare type OperationResultType> = Type[typeof _resultType]; export declare const _knownOperations: _ImplementedOperationTypes; export {};