import type { TSESTree as es } from "@typescript-eslint/utils"; /** * Allow/disallow glob options for import source checks. */ type ImportPathOptions = Readonly<{ readonly allow?: readonly string[]; readonly disallow?: readonly string[]; }>; /** * Determines whether an import source should be reported. * * @param sourceText - Source text from an import/export node. * @param options - Rule options for allow/disallow overrides. * @param defaultDisallowPatterns - Rule-specific default disallow patterns. * * @returns `true` when the source matches a disallow pattern and no allow * pattern. */ export declare const shouldReportImportSource: (sourceText: string, options: Readonly | undefined, defaultDisallowPatterns: readonly string[]) => boolean; /** * Gets import source text from supported import/export AST nodes. * * @param node - AST node to inspect. * * @returns Source text when present and string-literal based, otherwise * `undefined`. */ export declare const getImportSourceFromNode: (node: Readonly) => string | undefined; export type { ImportPathOptions }; //# sourceMappingURL=import-patterns.d.ts.map