HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: //usr/lib/node_modules/npm/node_modules/tuf-js/dist/models/delegations.d.ts
import { JSONObject, JSONValue } from '../utils/types';
import { Key } from './key';
import { DelegatedRole, SuccinctRoles } from './role';
type DelegatedRoleMap = Record<string, DelegatedRole>;
type KeyMap = Record<string, Key>;
interface DelegationsOptions {
    keys: KeyMap;
    roles?: DelegatedRoleMap;
    succinctRoles?: SuccinctRoles;
    unrecognizedFields?: Record<string, JSONValue>;
}
/**
 * A container object storing information about all delegations.
 *
 * Targets roles that are trusted to provide signed metadata files
 * describing targets with designated pathnames and/or further delegations.
 */
export declare class Delegations {
    readonly keys: KeyMap;
    readonly roles?: DelegatedRoleMap;
    readonly unrecognizedFields?: Record<string, JSONValue>;
    readonly succinctRoles?: SuccinctRoles;
    constructor(options: DelegationsOptions);
    equals(other: Delegations): boolean;
    rolesForTarget(targetPath: string): Generator<{
        role: string;
        terminating: boolean;
    }>;
    toJSON(): JSONObject;
    static fromJSON(data: JSONObject): Delegations;
}
export {};