import { Operation } from './operation'; /** * A map of labels. Each label is a key/value pair, where the key must be a * string and the value may be a string, number or boolean. */ export type Labels = Record; /** * Apply the given labels to an operation. When the operation is run as a task, * using {@link run} or {@link spawn}, the labels get applied to the task as * well. * * If the task operation already has labels, the existing labels are not * removed. See {@link setLabels} if you want to replace the existing labels * entirely. */ export declare function withLabels(operation: Operation, labels: Labels): Operation; /** * Like {@link withLabels}, but replaces the existing labels entirely. */ export declare function setLabels(operation: Operation, labels: Labels): Operation; export declare function extractLabels(operation: Operation): Labels | undefined; //# sourceMappingURL=labels.d.ts.map