interface AstNode { readonly type: string; [key: string]: any; } /** * ESLint rule definition for no-inline-string-empty-object-intersection. */ export interface UtilNoInlineStringEmptyObjectIntersectionRuleDefinition { readonly meta: { readonly type: 'problem'; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly inlineIntersectionForbidden: string; }; readonly schema: readonly object[]; }; create(context: { report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; }): Record void>; } /** * ESLint rule that errors on any inline `string & {}` intersection — either standalone or as a * member of a union (the `T | (string & {})` autocomplete-preserving idiom). The intersection is * opaque at the call site and reads like a typo; the workspace's `SuggestedString` alias from * `@dereekb/util` is the only sanctioned way to express the same shape. * * The rule is intentionally non-fixable: switching to `SuggestedString` also requires adding * an `import { type SuggestedString } from '@dereekb/util'` (or a relative path inside * `@dereekb/util` itself), and the right insertion point depends on existing import structure. * The error message names the type so the developer can make the change deliberately. * * The rule visits `TSIntersectionType` directly, so it fires regardless of whether the * intersection appears inside a union, a parenthesized type, a type alias body, a function * signature, or anywhere else. */ export declare const UTIL_NO_INLINE_STRING_EMPTY_OBJECT_INTERSECTION_RULE: UtilNoInlineStringEmptyObjectIntersectionRuleDefinition; export {};