import type { FeatureSource } from "../data/FeatureSource";
import type { Cancellation } from "../support/Cancellable";
/**
 * Detailed information about the result of running a task against a specific
 * feature source.
 */
export interface TaskResult {
    /**
     * The input feature source.
     */
    source: FeatureSource;
    /**
     * The number of features returned from this source.
     */
    count: number;
    /**
     * The amount of time (in milliseconds) until the first feature was returned
     * from the source.
     */
    time: number;
    /**
     * Provides the reason why the task was unsuccessful for this source if the
     * task could not be completed.
     */
    failureReason?: Error | Cancellation;
}
