targets.d.ts 714 B

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