summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/@tufjs/models/dist/targets.d.ts
blob: 442f9e44391b41fb93779c5a645a8b57a6cf8fa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { MetadataKind, Signed, SignedOptions } from './base';
import { Delegations } from './delegations';
import { TargetFile } from './file';
import { JSONObject } from './utils';
type TargetFileMap = Record<string, TargetFile>;
interface TargetsOptions extends SignedOptions {
    targets?: TargetFileMap;
    delegations?: Delegations;
}
export declare class Targets extends Signed {
    readonly type = MetadataKind.Targets;
    readonly targets: TargetFileMap;
    readonly delegations?: Delegations;
    constructor(options: TargetsOptions);
    addTarget(target: TargetFile): void;
    equals(other: Targets): boolean;
    toJSON(): JSONObject;
    static fromJSON(data: JSONObject): Targets;
}
export {};