import { RuntimeContext } from '@oinone/kunlun-engine';
import { Condition } from '@oinone/kunlun-request';
import { ServerActionWidget } from '../../action';
import { BaseView } from '../../basic';
export declare abstract class AbstractTaskAction<T> extends ServerActionWidget {
    protected abstract get moduleName(): string;
    protected abstract get sync(): boolean;
    protected abstract generatorGQLByTask(task: T, condition: string | Condition): Promise<string>;
    protected abstract createTask(searchRuntimeContext: RuntimeContext, task: T, condition: string | Condition): Promise<T>;
    protected doTask(searchRuntimeContext: RuntimeContext, task: T, condition: Condition | string): Promise<boolean>;
    protected processResponseResult(searchRuntimeContext: RuntimeContext, task: T, responseResult: boolean): boolean;
    protected seekSearchRuntimeContext(): RuntimeContext | undefined;
    protected seekParentMetadataRuntimeContext(): RuntimeContext<unknown> | undefined;
    protected executeSearchExpression(searchWidget: BaseView, expression: string): string | undefined;
    protected buildSearchConditions(): {
        runtimeContext: RuntimeContext;
        condition: Condition;
    } | undefined;
    protected getSessionPath(): string | undefined;
}
