UNPKG

arkit

Version:

Visualises JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams

22 lines 1.6 kB
/// <reference types="node" /> import { Component, ComponentFilters, ComponentSchema, Layers } from "./types"; import { Node, Statement } from "ts-morph"; export * from "./logger"; export declare const getStats: (path: string) => { isDirectory: boolean; isFile: boolean; }; export declare const getMemoryUsage: () => number; export declare const getPaths: (mainDirectory: string, directory: string, includePatterns: string[], excludePatterns: string[], history?: string[]) => string[]; export declare const match: (filepath: string, patterns?: string[] | undefined) => boolean; export declare const find: (filepath: string, patterns: string[]) => string | undefined; export declare const safeRequire: <T>(path: string) => T | undefined; export declare const array: <T>(input?: T | T[] | undefined) => T[] | undefined; export declare const verifyComponentFilters: (filters: ComponentFilters, component: ComponentSchema | Component, mainDirectory: string) => boolean; export declare const bold: (str: string) => string; export declare const request: (path: any, payload: any) => Promise<Buffer>; export declare const getAllComponents: (layers: Layers, sortByName?: boolean) => Component[]; export declare const getAbsolute: (filepath: string, root?: string) => string; export declare const convertToRelative: (paths: string[], root: string, excludes?: string[]) => string[]; export declare const getAllStatements: (nodes: Node<import("typescript").Node>[], statements?: Statement<import("typescript").Statement>[]) => Statement<import("typescript").Statement>[]; //# sourceMappingURL=utils.d.ts.map