import * as runner_pb from '../proto/runner_pb'; import { Task } from './api'; export declare const rootTaskName = "@insta/root"; export declare const rootTaskId = "@insta/root"; export declare function hashTaskId(value: string): string; export declare function discoverRecursively(task: Task, taskRequest: runner_pb.RegisterTaskRequest): Promise; export declare const rootTask: Task; /** * Returns the ids of the root tasks children. */ export declare function getRootTaskChildrenIds(): any[]; export declare function setTaskContext(newContext: Task): void; export declare function getTaskContext(): Task; export declare function getActiveTasks(): Set>; declare type TaskImpersonation = { id: string; executionId: string; }; /** * Executes a function as if it was executed under the task specified in `task`. * * @param fn The function to execute. * @param task The task impersonation. */ export declare function impersonateTask(fn: () => Promise, task: TaskImpersonation): Promise; export {};