interface AstNode { readonly type: string; [key: string]: any; } /** * ESLint rule definition for require-single-return. */ export interface UtilRequireSingleReturnRuleDefinition { readonly meta: { readonly type: 'suggestion'; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly multipleReturns: string; }; readonly schema: readonly object[]; }; create(context: { report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; }): Record void>; } /** * ESLint rule enforcing the workspace convention of a single `return` statement per function. Functions * with multiple early returns should be refactored to assign their result to a local variable and return * it once. Nested function-likes are analyzed independently — only returns inside the current function * scope (and the blocks that share it) count toward its tally. * * Simple early-exit guard clauses are exempt: a `ReturnStatement` that is the consequent — or the last * statement of the consequent `BlockStatement` — of an `IfStatement` with no `else` does not count * toward the tally. This permits the standard guard-clause idiom while still flagging if/else, switch, * try/catch, and returns mixed into main logic. * * @see `dbx__note__typescript-programming` → Single Return Per Function */ export declare const UTIL_REQUIRE_SINGLE_RETURN_RULE: UtilRequireSingleReturnRuleDefinition; export {};