/** * Phoenix company detector — basic (public) variant. * * Detects the "phoenix company" pattern: a new firm set up by the same * people who buried a prior company in insolvency, in the same line of * business. Three surface-level indicators computable from a single * DdReport payload; no cross-DB enrichment required. * * Indicators: * 1. SURNAME_MATCH — current statutory member has prior_bankrupt_companies * (= was at a firm that went into insolvency) * 2. FOUNDING_PROXIMITY — current firm was founded within 12 months of a * related insolvency start date (ISIR) * 3. NACE_MATCH — current firm has NACE codes (informational; cross-ARES * comparison with prior firm's NACE in rich variant) * * Sources: DdReport (ARES VR + ISIR), no async I/O. * Rich variant (4 additional indicators + deeper scoring) is available * in @czagents/ddplus (Compliance tier). */ import type { DdReport } from '../types.js'; export type PhoenixIndicatorCode = 'SURNAME_MATCH' | 'FOUNDING_PROXIMITY' | 'NACE_MATCH'; export declare const INDICATOR_LABELS: Record; export interface PhoenixIndicator { code: PhoenixIndicatorCode; fired: boolean; label: string; /** Names of statutory members implicated, when applicable. */ members?: string[]; /** Free-form detail for tooltip / drilldown. */ detail?: string; /** Whether the data needed to compute this indicator was available. */ available: boolean; } export interface PhoenixReport { /** Total indicators checked. */ total: number; /** Count of indicators that fired (only where data was available). */ fired: number; /** Weighted risk score 0–100. */ riskScore: number; indicators: PhoenixIndicator[]; /** Indicator codes where upstream data was unavailable. */ unavailable: PhoenixIndicatorCode[]; /** Actionable recommendations (populated by rich variant). */ recommendations?: string[]; } export declare function detectPhoenix(r: DdReport): PhoenixReport; //# sourceMappingURL=phoenix.d.ts.map