/** * @fileoverview Detached promise detection — flags un-awaited promise-returning * calls inside async contexts. * * The defaults here cover **generic JS/TS sync APIs only** (Array, String, * Object, Math, JSON, `console.*`, the Node `*Sync` family, timer * scheduling, and EventEmitter). Framework-specific helpers (Fastify * decorators, Pyroscope SDK, OTel propagation, DBOS `.init`, Vitest / * Drizzle helpers, etc.) belong in a recipe's * `checks.config['detached-promises']` block — see * {@link DetachedPromisesConfig}. The check reads that block via * `getCheckConfig` and merges it into the effective sync-call sets. */ /** * Check: resilience/detached-promises * * Detects promises that are not awaited or handled. * Missing await can cause silent failures. * * Uses AST analysis to: * - Only flag calls inside async functions/methods * - Skip known synchronous functions (logger.*, ensureCorrelationIdFor, etc.) * - Skip fire-and-forget patterns (process.nextTick, setImmediate, etc.) */ export declare const detachedPromises: import("@opensip-cli/fitness").Check; export { type DetachedPromisesConfig } from './detached-promises-sync-constants.js'; //# sourceMappingURL=detached-promises.d.ts.map