import { type TSESTree } from '@typescript-eslint/utils'; export type MessageIds = 'importNotAllowedInLabeledGroup' | 'importNotAllowedInUnlabeledGroup' | 'importOrderIncorrect' | 'groupNotConfigured' | 'groupDuplicate' | 'groupOrderIncorrect' | 'groupWithIncorrectEmptyNewlines'; export type ImportType = 'module' | 'namespace' | 'default' | 'default-and-named' | 'named'; export interface ConfiguredGroup { label?: string; matches: string | string[]; } export interface DeclaredGroup { label?: string; comment?: TSESTree.Comment; range: [number, number]; } export interface ImportContext { cwd: string; filename: string; } export type Options = [ { groups: ConfiguredGroup[]; order?: ImportType[]; } ];