file-utils.d.ts 836 B

123456789101112
  1. /// <reference types="node" />
  2. export declare function createIacDir(): void;
  3. export declare function extractBundle(response: NodeJS.ReadableStream): Promise<void>;
  4. export declare function isValidBundle(wasmPath: string, dataPath: string): boolean;
  5. export declare function computeCustomRulesBundleChecksum(): string | undefined;
  6. /**
  7. * makeFileAndDirectoryGenerator is a generator function that helps walking the directory and file structure of this pathToScan
  8. * @param root
  9. * @param maxDepth? - An optional `maxDepth` argument can be provided to limit how deep in the file tree the search will go.
  10. * @returns {Generator<object>} - a generator which yields an object with directories or paths for the path to scan
  11. */
  12. export declare function makeFileAndDirectoryGenerator(root?: string, maxDepth?: number): Generator<any, void, any>;