/** * Built-in synchronous-call allowlists for the detached-promises check. * Recipe config augments these via {@link DetachedPromisesConfig}. */ /** * Recipe-config shape for the detached-promises check. Each field augments the * built-in defaults; nothing here is required. Project-specific helper names * (e.g. opensip's `attachDomainContext`, `sendError`) belong in a recipe's * `checks.config['detached-promises']` block, not in built-in defaults. */ export interface DetachedPromisesConfig extends Record { /** Method/function names that are synchronous (no await needed). */ additionalSyncFunctions?: readonly string[]; /** Receiver identifiers (the part before the dot) that are synchronous. */ additionalSyncReceivers?: readonly string[]; /** Method-name prefixes that mark a call as synchronous (e.g. `'wire'`). */ additionalSyncPrefixes?: readonly string[]; } /** Substrings matched against receiver variable names (case-insensitive). */ export declare const KNOWN_SYNC_RECEIVER_PATTERNS: string[]; /** File path patterns that indicate CLI commands or route registrations. */ export declare const FILE_SKIP_PATTERNS: string[]; /** Method-name prefixes that indicate synchronous calls. */ export declare const KNOWN_SYNC_PREFIXES: string[]; /** Method name suffixes that indicate synchronous calls. */ export declare const KNOWN_SYNC_SUFFIXES: string[]; export declare function isFireAndForgetPattern(name: string): boolean; /** Built-in defaults merged with the recipe's `detached-promises` config slice. */ export interface EffectiveSyncSets { syncFunctions: readonly string[]; syncReceivers: readonly string[]; syncPrefixes: readonly string[]; } /** Build effective sync-call lookup lists from defaults + recipe config. */ export declare function buildEffectiveSyncSets(): EffectiveSyncSets; //# sourceMappingURL=detached-promises-sync-constants.d.ts.map