interface AstNode { readonly type: string; [key: string]: any; } /** * Options for the no-sister-re-export rule. */ export interface UtilNoSisterReExportRuleOptions { /** * Glob-style specifier patterns that identify "sister" packages. A specifier matching * any pattern is reported. `*` matches any run of characters; other regex metacharacters * are escaped. Anchored start-to-end. * * @example ['@dereekb/*', 'joinfoodflip-*'] */ readonly patterns?: readonly string[]; /** * Exact specifier exemptions. A re-export whose source string exactly matches an entry * is always allowed, even if it matches one of `patterns`. */ readonly allow?: readonly string[]; /** * When true, type-only re-exports (`export type { ... } from 'pkg'` and `export type * from 'pkg'`) * are allowed regardless of `patterns`. Defaults to false. */ readonly allowTypeOnly?: boolean; } /** * ESLint rule definition for no-sister-re-export. */ export interface UtilNoSisterReExportRuleDefinition { readonly meta: { readonly type: 'problem'; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly noSisterReExport: string; readonly noSisterReExportAll: string; }; readonly schema: readonly object[]; }; create(context: { options: UtilNoSisterReExportRuleOptions[]; report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; }): Record void>; } /** * ESLint rule that disallows re-exporting from "sister" packages — workspace packages other than * the one the file lives in. Catches the common shortcut of * * ```ts * export { somethingFromOtherPackage } from 'some-other-package'; * ``` * * inside package A when `some-other-package` is package B in the same workspace. The fix is to * either import directly from the source package at the call site, or to expose the symbol from * that package's own public surface so callers don't traverse an unrelated package's barrel. * * Sister packages are identified by `options.patterns` (glob-style; `*` matches any run of characters). * Relative re-exports (`./local`, `../sibling`) are always allowed. */ export declare const UTIL_NO_SISTER_RE_EXPORT_RULE: UtilNoSisterReExportRuleDefinition; export {};