import { CompiledMatcher } from './matchers.js'; export type ImportProtectionEnvType = 'client' | 'server'; export interface ImportProtectionEnvRules { specifiers: Array; files: Array; excludeFiles: Array; } /** * Shared subset of adapter config used to decide which environment rules apply * and whether an importer should be checked at all. */ export interface ImportProtectionAdapterConfig { root: string; srcDirectory: string; compiledRules: { client: ImportProtectionEnvRules; server: ImportProtectionEnvRules; }; includeMatchers: Array; excludeMatchers: Array; ignoreImporterMatchers: Array; envTypeMap: Map; } export declare function getImportProtectionRelativePath(root: string, absolutePath: string): string; export declare function getImportProtectionEnvType(config: Pick, envName: string): ImportProtectionEnvType; export declare function getImportProtectionRulesForEnvironment(config: Pick, envName: string): ImportProtectionEnvRules; export declare function shouldCheckImportProtectionImporter(config: Pick, importer: string, cache?: Map): boolean;