import { type RequestExtras } from './http';
type TaskResult<T> = {
    status: 'not_found';
} | {
    status: 'ok';
    result: T;
};
/**
 * Fetch the result of a task from the backend by it's id
 *
 * @param taskId the id of the task to fetch
 * @param token the session token to use
 */
export declare function fetchTaskResult<T>(taskId: string, extras: RequestExtras): Promise<TaskResult<T>>;
/**
 * Cancel a task by it's id
 *
 * @param taskId the id of the task to fetch
 * @param token the session token to use
 */
export declare function cancelTask(taskId: string, extras: RequestExtras): Promise<boolean>;
export {};
//# sourceMappingURL=core.d.ts.map