Debian Codegraph @

debian/tests/test_modules/@tufjs/repo-mock/dist/index.d.ts

raw
1 import { TUFHandlerOptions } from './handler';
2 import { Target } from './shared.types';
3 export { tufHandlers } from './handler';
4 export { initializeTUFRepo } from './repo';
5 export type { Target } from './shared.types';
6 export type { TUFHandlerOptions } from './handler';
7 export type { TUFRepo } from './repo';
8 type MockRepoOptions = {
9 baseURL?: string;
10 cachePath?: string;
11 } & TUFHandlerOptions;
12 export declare function mockRepo(baseURL: string, targets: Target[], options?: TUFHandlerOptions): string;
13 export declare function clearMock(): void;
14 declare class Scope {
15 private readonly targets;
16 private readonly options;
17 readonly baseURL: string;
18 readonly cachePath: string;
19 constructor(targets: Target[], options?: MockRepoOptions);
20 reset(): void;
21 teardown(): void;
22 private setup;
23 }
24 declare const _default: (targets: Target | Target[], options?: MockRepoOptions) => Scope;
25 export default _default;