import { type Linter } from 'eslint'; type SpreadOptionsIfIsArray = T[1] extends readonly unknown[] ? readonly [Linter.StringSeverity, ...T[1]] : T; declare namespace OnlyExportComponents { /** * ### schema * * ```json * [ * { * "type": "object", * "properties": { * "extraHOCs": { * "type": "array", * "items": { * "type": "string" * } * }, * "allowExportNames": { * "type": "array", * "items": { * "type": "string" * } * }, * "allowConstantExport": { * "type": "boolean" * }, * "checkJS": { * "type": "boolean" * } * }, * "additionalProperties": false * } * ] * ``` */ type Options = Readonly<{ extraHOCs?: readonly string[]; allowExportNames?: readonly string[]; allowConstantExport?: boolean; checkJS?: boolean; }>; type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray; } export type EslintReactRefreshRules = Readonly<{ 'react-refresh/only-export-components': OnlyExportComponents.RuleEntry; }>; export type EslintReactRefreshRulesOption = Readonly<{ 'react-refresh/only-export-components': OnlyExportComponents.Options; }>; export {}; //# sourceMappingURL=eslint-react-refresh-rules.d.mts.map