示例工程 44-threat-model
44-threat-model/app/.tsc/shared/policy.d.ts
export type Verdict = {
allowed: boolean;
reason: string;
};
export declare function isAllowedNavigation(raw: string): Verdict;
export declare function resolveInsideWorkspace(root: string, candidate: string): {
ok: boolean;
path: string;
reason: string;
};
export declare function verifyUpdate(input: {
current: string;
next: string;
hash: string;
expectedHash: string;
signed: boolean;
}): Verdict;
export declare function pluginAllowed(input: {
bundled: boolean;
signed: boolean;
path: string;
}): Verdict;
//# sourceMappingURL=policy.d.ts.map