import type { BudgetLease, CostKnowledge, PaidBudget } from "@claudexor/schema"; import type { CircuitThresholds } from "./ledger.js"; export interface TaskFinancialTotals { cashUsd: number; valuationUsd: number; cashEstimated: boolean; cashKnowledge: CostKnowledge | null; valuationKnowledge: CostKnowledge | null; } export interface SharedFinancialState { budget: PaidBudget; thresholds: CircuitThresholds; leases: Map; holds: Map; unknownPaidInFlight: Set; physicalDispatchStarted: Set; totalsByTask: Map; cashUsd: number; valuationUsd: number; cashEstimated: boolean; cashKnowledge: CostKnowledge | null; valuationKnowledge: CostKnowledge | null; overshot: boolean; unverifiable: boolean; rootOnCashSettled?: (cashSpendUsd: number, valuationUsd: number, cashEstimated: boolean, valuationKnowledge: CostKnowledge, cashKnowledge: CostKnowledge) => void; } export declare function newSharedFinancialState(budget: PaidBudget, thresholds: CircuitThresholds, rootOnCashSettled?: (cashSpendUsd: number, valuationUsd: number, cashEstimated: boolean, valuationKnowledge: CostKnowledge, cashKnowledge: CostKnowledge) => void): SharedFinancialState; export declare function recordSharedSettlement(financial: SharedFinancialState, taskTotals: TaskFinancialTotals, cashUsd: number, valuationUsd: number, cashKnowledge: CostKnowledge, valuationKnowledge: CostKnowledge | null): void; export declare function taskFinancialTotals(financial: SharedFinancialState, taskId: string): TaskFinancialTotals; export declare function settlementIsEstimated(financial: SharedFinancialState, taskScope: string | null): boolean; export declare function settlementValuationKnowledge(financial: SharedFinancialState, taskScope: string | null): CostKnowledge; //# sourceMappingURL=shared-financial-state.d.ts.map