import { FsPath } from '../file-info/fs-path'; export interface DependencyCheckContext { fromModulePath: FsPath; toModulePath: FsPath; fromFilePath: FsPath; toFilePath: FsPath; } export type RuleMatcherFn = (context: { from: string; to: string; } & DependencyCheckContext) => boolean; export type RuleMatcher = string | null | RuleMatcherFn; export type DependencyRulesConfig = Record;