/**
 * Multi-stage flow for `flow-sankey-chart`: stages, nodes, and severity links.
 *
 * Two table shapes become one graph:
 * - a link table (`source`, `target`, value): a node's stage is its longest
 *   path from a root, the column the widget draws it in;
 * - a hierarchy table: one category column per stage, left to right
 *   (category → subcategory → cause → outcome), and a value per row.
 *
 * Fewer than three stages is a two-column Sankey, so this returns null and
 * `sankey-chart` draws it. A cycle has no stages and is refused.
 */
export declare const MIN_FLOW_STAGES = 3;
declare const SEVERITIES: readonly ["high", "medium", "low", "info"];
type Severity = (typeof SEVERITIES)[number];
type Hint = {
    name: string;
    role: string;
};
type FlowNode = {
    id: string;
    label: string;
    stage: number;
    value: number;
    share: number;
};
type FlowLink = {
    source: string;
    target: string;
    value: number;
    severity?: Severity;
};
export type FlowGraph = {
    stages: string[];
    nodes: FlowNode[];
    links: FlowLink[];
    valueField: string;
};
export declare function flowSankeyChartPayload(chartType: string | undefined, fields: Record<string, string>, rows: Record<string, unknown>[], columns?: readonly Hint[]): unknown | null;
/** Three or more stages. Lets the engine draw the flow as `flow-sankey-chart`. */
export declare function flowSankeyFits(payload: unknown, columns?: readonly Hint[]): boolean;
/** The staged graph, or null below three stages, on a cycle, or with no positive value. */
export declare function flowGraph(fields: Record<string, string>, rows: Record<string, unknown>[], columns?: readonly Hint[]): FlowGraph | null;
export {};
