import { z } from "zod"; import { type AssetEconomicsAssumptionsOverrides, type AssetEconomicsResult } from "./economics.js"; import type { ProductionQualityAuditOptions } from "./production-quality.js"; import { type ProductionSourceFitTolerancePolicy } from "./source-fit.js"; import { type SourceGovernedProductionSourceInput, type SourceGovernedProductionSourceResult, type SourceGovernedSourceFitResult } from "./workflow.js"; import { type EconomicsAssumptions, type NormalizedProductionDataset } from "./schemas.js"; export type InterventionAction = "workover" | "recomplete" | "new_drill"; export type OperationalReadinessStatus = "ready" | "needs_review" | "blocked" | "unknown"; export type DevelopmentConstraintStatus = "clear" | "needs_review" | "blocked" | "not_evaluated"; export type InterventionBudgetOptimizationMethod = "knapsack_exact"; declare const GeologyIntervalSchema: z.ZodObject<{ intervalId: z.ZodOptional; wellId: z.ZodString; formation: z.ZodString; bench: z.ZodOptional; topMdFt: z.ZodOptional; baseMdFt: z.ZodOptional; grossThicknessFt: z.ZodOptional; netPayFt: z.ZodOptional; porosityFraction: z.ZodOptional; waterSaturationFraction: z.ZodOptional; permeabilityMd: z.ZodOptional; pressureGradientPsiPerFt: z.ZodOptional; completionStatus: z.ZodDefault>; confidence: z.ZodDefault; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; formation: string; completionStatus: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out"; confidence: number; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; }, { wellId: string; formation: string; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; completionStatus?: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out" | undefined; confidence?: number | undefined; }>; declare const GeologyDatasetSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"oil-gas-geology-dataset/v1">; generatedAt: z.ZodOptional; intervals: z.ZodArray; wellId: z.ZodString; formation: z.ZodString; bench: z.ZodOptional; topMdFt: z.ZodOptional; baseMdFt: z.ZodOptional; grossThicknessFt: z.ZodOptional; netPayFt: z.ZodOptional; porosityFraction: z.ZodOptional; waterSaturationFraction: z.ZodOptional; permeabilityMd: z.ZodOptional; pressureGradientPsiPerFt: z.ZodOptional; completionStatus: z.ZodDefault>; confidence: z.ZodDefault; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; formation: string; completionStatus: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out"; confidence: number; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; }, { wellId: string; formation: string; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; completionStatus?: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out" | undefined; confidence?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: "oil-gas-geology-dataset/v1"; intervals: { wellId: string; formation: string; completionStatus: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out"; confidence: number; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; }[]; generatedAt?: string | undefined; }, { schemaVersion: "oil-gas-geology-dataset/v1"; intervals: { wellId: string; formation: string; sourceId?: string | undefined; notes?: string | undefined; intervalId?: string | undefined; bench?: string | undefined; topMdFt?: number | undefined; baseMdFt?: number | undefined; grossThicknessFt?: number | undefined; netPayFt?: number | undefined; porosityFraction?: number | undefined; waterSaturationFraction?: number | undefined; permeabilityMd?: number | undefined; pressureGradientPsiPerFt?: number | undefined; completionStatus?: "unknown" | "producing" | "behind_pipe" | "depleted" | "watered_out" | undefined; confidence?: number | undefined; }[]; generatedAt?: string | undefined; }>; declare const TypeCurveTemplateSchema: z.ZodObject<{ templateId: z.ZodOptional; formation: z.ZodString; bench: z.ZodOptional; action: z.ZodOptional>; firstMonthBoe: z.ZodNumber; nominalMonthlyDecline: z.ZodDefault; terminalMonthlyDecline: z.ZodOptional; oilFraction: z.ZodOptional; gasBoeFraction: z.ZodOptional; nglFraction: z.ZodOptional; waterBblPerBoe: z.ZodOptional; confidence: z.ZodDefault; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { formation: string; confidence: number; firstMonthBoe: number; nominalMonthlyDecline: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }, { formation: string; firstMonthBoe: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; confidence?: number | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; nominalMonthlyDecline?: number | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }>; declare const TypeCurveLibrarySchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"oil-gas-type-curve-library/v1">; generatedAt: z.ZodOptional; templates: z.ZodArray; formation: z.ZodString; bench: z.ZodOptional; action: z.ZodOptional>; firstMonthBoe: z.ZodNumber; nominalMonthlyDecline: z.ZodDefault; terminalMonthlyDecline: z.ZodOptional; oilFraction: z.ZodOptional; gasBoeFraction: z.ZodOptional; nglFraction: z.ZodOptional; waterBblPerBoe: z.ZodOptional; confidence: z.ZodDefault; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { formation: string; confidence: number; firstMonthBoe: number; nominalMonthlyDecline: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }, { formation: string; firstMonthBoe: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; confidence?: number | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; nominalMonthlyDecline?: number | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: "oil-gas-type-curve-library/v1"; templates: { formation: string; confidence: number; firstMonthBoe: number; nominalMonthlyDecline: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }[]; generatedAt?: string | undefined; }, { schemaVersion: "oil-gas-type-curve-library/v1"; templates: { formation: string; firstMonthBoe: number; sourceId?: string | undefined; notes?: string | undefined; bench?: string | undefined; confidence?: number | undefined; templateId?: string | undefined; action?: "workover" | "recomplete" | "new_drill" | undefined; nominalMonthlyDecline?: number | undefined; terminalMonthlyDecline?: number | undefined; oilFraction?: number | undefined; gasBoeFraction?: number | undefined; nglFraction?: number | undefined; waterBblPerBoe?: number | undefined; }[]; generatedAt?: string | undefined; }>; declare const OperationalReadinessSchema: z.ZodObject<{ afeStatus: z.ZodDefault>; permitStatus: z.ZodDefault>; surfaceAccessStatus: z.ZodDefault>; vendorQuoteStatus: z.ZodDefault>; waterHandlingStatus: z.ZodDefault>; crewAvailabilityStatus: z.ZodDefault>; materialsStatus: z.ZodOptional>; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { afeStatus: "unknown" | "approved" | "draft" | "not_started" | "not_required"; permitStatus: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted"; surfaceAccessStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; vendorQuoteStatus: "unknown" | "current" | "stale" | "missing"; waterHandlingStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; crewAvailabilityStatus: "unknown" | "available" | "limited" | "unavailable"; notes?: string | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; }, { notes?: string | undefined; afeStatus?: "unknown" | "approved" | "draft" | "not_started" | "not_required" | undefined; permitStatus?: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted" | undefined; surfaceAccessStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; vendorQuoteStatus?: "unknown" | "current" | "stale" | "missing" | undefined; waterHandlingStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; crewAvailabilityStatus?: "unknown" | "available" | "limited" | "unavailable" | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; }>; declare const DevelopmentConstraintsSchema: z.ZodObject<{ nearestProducerDistanceFt: z.ZodOptional; minProducerSpacingFt: z.ZodOptional; parentWellId: z.ZodOptional; parentChildDistanceFt: z.ZodOptional; minParentChildDistanceFt: z.ZodOptional; leaseLineDistanceFt: z.ZodOptional; minLeaseLineDistanceFt: z.ZodOptional; spacingUnitStatus: z.ZodOptional>; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; }, { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; }>; declare const InterventionCostSavingsSchema: z.ZodObject<{ fixedLoeReductionUsdPerMonth: z.ZodOptional; variableOpexReductionUsdPerBoe: z.ZodOptional; waterHandlingReductionUsdPerBbl: z.ZodOptional; downtimeReductionDaysPerMonth: z.ZodOptional; runtimeImprovementFraction: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }>; declare const InterventionCandidateSchema: z.ZodObject<{ candidateId: z.ZodOptional; wellId: z.ZodString; action: z.ZodEnum<["workover", "recomplete", "new_drill"]>; targetFormation: z.ZodOptional; targetBench: z.ZodOptional; capexUsd: z.ZodOptional; upliftPercent: z.ZodOptional; upliftBoePerMonth: z.ZodOptional; durationMonths: z.ZodOptional; chanceOfSuccess: z.ZodOptional; incrementalFixedOpexUsdPerMonth: z.ZodOptional; incrementalVariableOpexUsdPerBoe: z.ZodOptional; costSavings: z.ZodOptional; variableOpexReductionUsdPerBoe: z.ZodOptional; waterHandlingReductionUsdPerBbl: z.ZodOptional; downtimeReductionDaysPerMonth: z.ZodOptional; runtimeImprovementFraction: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }>>; readiness: z.ZodOptional>; permitStatus: z.ZodDefault>; surfaceAccessStatus: z.ZodDefault>; vendorQuoteStatus: z.ZodDefault>; waterHandlingStatus: z.ZodDefault>; crewAvailabilityStatus: z.ZodDefault>; materialsStatus: z.ZodOptional>; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { afeStatus: "unknown" | "approved" | "draft" | "not_started" | "not_required"; permitStatus: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted"; surfaceAccessStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; vendorQuoteStatus: "unknown" | "current" | "stale" | "missing"; waterHandlingStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; crewAvailabilityStatus: "unknown" | "available" | "limited" | "unavailable"; notes?: string | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; }, { notes?: string | undefined; afeStatus?: "unknown" | "approved" | "draft" | "not_started" | "not_required" | undefined; permitStatus?: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted" | undefined; surfaceAccessStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; vendorQuoteStatus?: "unknown" | "current" | "stale" | "missing" | undefined; waterHandlingStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; crewAvailabilityStatus?: "unknown" | "available" | "limited" | "unavailable" | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; }>>; developmentConstraints: z.ZodOptional; minProducerSpacingFt: z.ZodOptional; parentWellId: z.ZodOptional; parentChildDistanceFt: z.ZodOptional; minParentChildDistanceFt: z.ZodOptional; leaseLineDistanceFt: z.ZodOptional; minLeaseLineDistanceFt: z.ZodOptional; spacingUnitStatus: z.ZodOptional>; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; }, { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; }>>; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; action: "workover" | "recomplete" | "new_drill"; notes?: string | undefined; capexUsd?: number | undefined; candidateId?: string | undefined; targetFormation?: string | undefined; targetBench?: string | undefined; upliftPercent?: number | undefined; upliftBoePerMonth?: number | undefined; durationMonths?: number | undefined; chanceOfSuccess?: number | undefined; incrementalFixedOpexUsdPerMonth?: number | undefined; incrementalVariableOpexUsdPerBoe?: number | undefined; costSavings?: { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; } | undefined; readiness?: { afeStatus: "unknown" | "approved" | "draft" | "not_started" | "not_required"; permitStatus: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted"; surfaceAccessStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; vendorQuoteStatus: "unknown" | "current" | "stale" | "missing"; waterHandlingStatus: "unknown" | "needs_review" | "blocked" | "confirmed"; crewAvailabilityStatus: "unknown" | "available" | "limited" | "unavailable"; notes?: string | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; } | undefined; developmentConstraints?: { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; } | undefined; }, { wellId: string; action: "workover" | "recomplete" | "new_drill"; notes?: string | undefined; capexUsd?: number | undefined; candidateId?: string | undefined; targetFormation?: string | undefined; targetBench?: string | undefined; upliftPercent?: number | undefined; upliftBoePerMonth?: number | undefined; durationMonths?: number | undefined; chanceOfSuccess?: number | undefined; incrementalFixedOpexUsdPerMonth?: number | undefined; incrementalVariableOpexUsdPerBoe?: number | undefined; costSavings?: { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; } | undefined; readiness?: { notes?: string | undefined; afeStatus?: "unknown" | "approved" | "draft" | "not_started" | "not_required" | undefined; permitStatus?: "unknown" | "blocked" | "approved" | "not_started" | "not_required" | "submitted" | undefined; surfaceAccessStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; vendorQuoteStatus?: "unknown" | "current" | "stale" | "missing" | undefined; waterHandlingStatus?: "unknown" | "needs_review" | "blocked" | "confirmed" | undefined; crewAvailabilityStatus?: "unknown" | "available" | "limited" | "unavailable" | undefined; materialsStatus?: "unknown" | "available" | "unavailable" | "lead_time_risk" | undefined; } | undefined; developmentConstraints?: { notes?: string | undefined; nearestProducerDistanceFt?: number | undefined; minProducerSpacingFt?: number | undefined; parentWellId?: string | undefined; parentChildDistanceFt?: number | undefined; minParentChildDistanceFt?: number | undefined; leaseLineDistanceFt?: number | undefined; minLeaseLineDistanceFt?: number | undefined; spacingUnitStatus?: "unknown" | "needs_review" | "blocked" | "clear" | undefined; } | undefined; }>; declare const InterventionCandidateScenarioOverridesSchema: z.ZodObject<{ capexUsd: z.ZodOptional; upliftPercent: z.ZodOptional; upliftBoePerMonth: z.ZodOptional; durationMonths: z.ZodOptional; chanceOfSuccess: z.ZodOptional; incrementalFixedOpexUsdPerMonth: z.ZodOptional; incrementalVariableOpexUsdPerBoe: z.ZodOptional; costSavings: z.ZodOptional; variableOpexReductionUsdPerBoe: z.ZodOptional; waterHandlingReductionUsdPerBbl: z.ZodOptional; downtimeReductionDaysPerMonth: z.ZodOptional; runtimeImprovementFraction: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }, { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; }>>; }, "strip", z.ZodTypeAny, { capexUsd?: number | undefined; upliftPercent?: number | undefined; upliftBoePerMonth?: number | undefined; durationMonths?: number | undefined; chanceOfSuccess?: number | undefined; incrementalFixedOpexUsdPerMonth?: number | undefined; incrementalVariableOpexUsdPerBoe?: number | undefined; costSavings?: { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; } | undefined; }, { capexUsd?: number | undefined; upliftPercent?: number | undefined; upliftBoePerMonth?: number | undefined; durationMonths?: number | undefined; chanceOfSuccess?: number | undefined; incrementalFixedOpexUsdPerMonth?: number | undefined; incrementalVariableOpexUsdPerBoe?: number | undefined; costSavings?: { notes?: string | undefined; fixedLoeReductionUsdPerMonth?: number | undefined; variableOpexReductionUsdPerBoe?: number | undefined; waterHandlingReductionUsdPerBbl?: number | undefined; downtimeReductionDaysPerMonth?: number | undefined; runtimeImprovementFraction?: number | undefined; } | undefined; }>; export type GeologyInterval = z.infer; export type GeologyDataset = z.infer; export type TypeCurveTemplate = z.infer; export type TypeCurveLibrary = z.infer; export type OperationalReadiness = z.infer; export type DevelopmentConstraints = z.infer; export type InterventionCostSavings = z.infer; export type InterventionCandidate = z.infer; export type InterventionCandidateScenarioOverrides = z.infer; export interface InterventionScenarioDefinition { scenarioId: string; label?: string; description?: string; economicsOverrides?: AssetEconomicsAssumptionsOverrides; candidateOverrides?: InterventionCandidateScenarioOverrides; capexMultiplier?: number; upliftMultiplier?: number; chanceOfSuccessMultiplier?: number; chanceOfSuccessDelta?: number; fixedOpexMultiplier?: number; variableOpexMultiplier?: number; costSavingsMultiplier?: number; fixedLoeSavingsMultiplier?: number; variableOpexSavingsMultiplier?: number; waterHandlingSavingsMultiplier?: number; runtimeImprovementMultiplier?: number; } export interface WellEfficiencyMetrics { wellId: string; wellName?: string; latestMonth?: string; monthCount: number; latestBoePerDay: number; trailingThreeMonthBoePerDay: number; peakBoePerDay: number; currentToPeakRatio: number; averageDaysOn: number; uptimeFraction: number; oilCutFraction: number; waterCutFraction: number; gasOilRatioMcfPerBbl?: number; nominalBoeDeclineMonthly: number; cumulativeBoe: number; netbackUsdPerBoe?: number; operatingMarginUsdPerMonth?: number; efficiencyScore: number; flags: string[]; } export interface GeologyFitResult { wellId: string; intervalCount: number; bestInterval?: GeologyInterval; bestReservoirQualityScore: number; recompleteScore: number; newDrillScore: number; confidence: number; flags: string[]; } export interface GeologySourceFitTolerance { netPayAbsoluteToleranceFt?: number; grossThicknessAbsoluteToleranceFt?: number; porosityAbsoluteToleranceFraction?: number; waterSaturationAbsoluteToleranceFraction?: number; pressureGradientAbsoluteTolerancePsiPerFt?: number; permeabilityFactorTolerance?: number; confidenceAbsoluteTolerance?: number; maxReviewItems?: number; } export interface GeologySourceFitReviewItem { severity: "info" | "warning" | "error"; code: string; wellId: string; formation: string; bench?: string; field?: string; leftValue?: number | string; rightValue?: number | string; absoluteDelta?: number; percentDelta?: number; message: string; } export interface GeologySourceFitComparisonResult { schema: "oil-gas-impact-core/geology-source-fit-comparison/v1"; status: "pass" | "warn" | "fail"; leftLabel: string; rightLabel: string; geologySourceFitScore: number; generatedAt: string; tolerance: Required; summary: { leftIntervalCount: number; rightIntervalCount: number; overlappingIntervalCount: number; leftOnlyIntervalCount: number; rightOnlyIntervalCount: number; materialDeltaCount: number; completionStatusMismatchCount: number; lowConfidenceIntervalCount: number; missingFieldCount: number; reviewItemCount: number; }; reviewItems: GeologySourceFitReviewItem[]; } export interface InterventionScenarioResult { scenarioId: string; label: string; description?: string; rank: number; riskedNpvUsd: number; riskedNpvDeltaFromBaseUsd: number; riskedNpvDeltaFromBasePercent?: number; unriskedNpvUsd: number; capexUsd: number; estimatedIncrementalBoeFirstMonth: number; estimatedUpliftPercent?: number; chanceOfSuccess: number; estimatedMonthlyLoeSavingsUsd: number; unriskedLoeSavingsNpvUsd: number; riskedLoeSavingsNpvUsd: number; paybackMonth?: string; assumptions: EconomicsAssumptions; economics: AssetEconomicsResult; typeCurveTemplateId?: string; } export interface OperationalReadinessResult { status: OperationalReadinessStatus; score: number; flags: string[]; readiness?: OperationalReadiness; } export interface DevelopmentConstraintResult { status: DevelopmentConstraintStatus; score: number; flags: string[]; constraints?: DevelopmentConstraints; } export interface InterventionScenarioSensitivityResult { schema: "oil-gas-impact-core/intervention-scenario-sensitivity/v1"; baseScenarioId: string; scenarioCount: number; summary: { bestScenarioId?: string; worstScenarioId?: string; highestRiskedNpvUsd?: number; lowestRiskedNpvUsd?: number; riskedNpvRangeUsd: number; averageRiskedNpvUsd: number; scenariosWithPositiveRiskedNpv: number; scenariosWithPayback: number; }; ranking: Array<{ rank: number; scenarioId: string; label: string; riskedNpvUsd: number; riskedNpvDeltaFromBaseUsd: number; paybackMonth?: string; }>; scenarios: InterventionScenarioResult[]; } export interface InterventionOpportunityResult { rank: number; candidateId: string; wellId: string; action: InterventionAction; targetFormation?: string; targetBench?: string; recommendationScore: number; efficiencyScore: number; geologyScore: number; economicsScore: number; estimatedIncrementalBoeFirstMonth: number; estimatedUpliftPercent?: number; chanceOfSuccess: number; estimatedMonthlyLoeSavingsUsd: number; unriskedLoeSavingsNpvUsd: number; riskedLoeSavingsNpvUsd: number; costSavingsFlags: string[]; costSavings?: InterventionCostSavings; riskedNpvUsd: number; unriskedNpvUsd: number; capexUsd: number; paybackMonth?: string; readinessStatus: OperationalReadinessStatus; readinessScore: number; readinessFlags: string[]; readiness?: OperationalReadiness; developmentConstraintStatus: DevelopmentConstraintStatus; developmentConstraintScore: number; developmentConstraintFlags: string[]; developmentConstraints?: DevelopmentConstraints; reviewRequired: boolean; reviewReasons: string[]; rationale: string[]; economics: AssetEconomicsResult; typeCurveTemplateId?: string; scenarioSensitivity?: InterventionScenarioSensitivityResult; } export interface WellInterventionScreenWorkflowArtifacts { normalizedProductionJson: string; workflowSummaryJson: string; workflowSummaryMarkdown: string; } export interface WellInterventionScreenWorkflowResult { schema: "oil-gas-impact-core/well-intervention-screen-workflow/v1"; runDir: string; generatedAt: string; summary: { wellCount: number; candidateCount: number; positiveNpvCandidateCount: number; reviewRequiredCandidateCount: number; readinessReadyCandidateCount: number; readinessReviewCandidateCount: number; readinessBlockedCandidateCount: number; readinessUnknownCandidateCount: number; developmentConstraintClearCandidateCount: number; developmentConstraintReviewCandidateCount: number; developmentConstraintBlockedCandidateCount: number; developmentConstraintNotEvaluatedCandidateCount: number; totalPositiveRiskedNpvUsd: number; topCandidateId?: string; topWellId?: string; topAction?: InterventionAction; }; normalizedProduction: NormalizedProductionDataset; geologyDataset?: GeologyDataset; typeCurveLibrary?: TypeCurveLibrary; efficiency: WellEfficiencyMetrics[]; geologyFit: GeologyFitResult[]; opportunities: InterventionOpportunityResult[]; artifacts: WellInterventionScreenWorkflowArtifacts; } export interface WellInterventionScreenWorkflowInput { runDir: string; productionDataset?: unknown; productionPath?: string; normalizedProduction?: unknown; normalizedProductionPath?: string; geologyDataset?: unknown; geologyPath?: string; typeCurveLibrary?: unknown; typeCurveLibraryPath?: string; candidateActions?: unknown; candidateActionsPath?: string; economicsAssumptions?: unknown; economicsAssumptionsPath?: string; scenarioDefinitions?: unknown; scenarioDefinitionsPath?: string; baseScenarioId?: string; forecastMonths?: number; generatedAt?: string; } export interface InterventionBudgetOptimizerConstraints { maxCandidates?: number; minRiskedNpvUsd?: number; minRecommendationScore?: number; requiredActions?: InterventionAction[]; excludedActions?: InterventionAction[]; maxCapitalByAction?: Partial>; excludeReviewRequired?: boolean; } export interface InterventionBudgetOptimizerInput { interventionScreenResult: WellInterventionScreenWorkflowResult; budgetUsd: number; constraints?: InterventionBudgetOptimizerConstraints; generatedAt?: string; } export interface BudgetOptimizedInterventionCandidate { candidateId: string; wellId: string; action: InterventionAction; status: "selected" | "deferred" | "rejected"; rank?: number; originalRank: number; recommendationScore: number; riskedNpvUsd: number; unriskedNpvUsd: number; capexUsd: number; chanceOfSuccess: number; capitalEfficiency: number; estimatedMonthlyLoeSavingsUsd: number; riskedLoeSavingsNpvUsd: number; costSavingsFlags: string[]; readinessStatus: OperationalReadinessStatus; readinessScore: number; readinessFlags: string[]; developmentConstraintStatus: DevelopmentConstraintStatus; developmentConstraintScore: number; developmentConstraintFlags: string[]; reviewRequired: boolean; reviewReasons: string[]; decisionReasons: string[]; scenarioRiskedNpvUsd?: Record; } export interface InterventionBudgetPortfolioScenario { scenarioId: string; label: string; totalRiskedNpvUsd: number; totalCapexUsd: number; selectedCandidateCount: number; } export interface InterventionBudgetOptimizerResult { schema: "oil-gas-impact-core/intervention-budget-optimizer/v1"; status: "pass" | "warn" | "fail"; optimizationMethod: InterventionBudgetOptimizationMethod; generatedAt: string; budgetUsd: number; constraints: Required> & { maxCapitalByAction: Partial>; }; summary: { candidateCount: number; selectedCandidateCount: number; deferredCandidateCount: number; rejectedCandidateCount: number; totalCapexUsd: number; remainingBudgetUsd: number; budgetUtilizationFraction: number; totalRiskedNpvUsd: number; totalUnriskedNpvUsd: number; riskedNpvPerDollar: number; averageChanceOfSuccess: number; reviewRequiredSelectedCount: number; selectedActions: Record; downsideRiskedNpvUsd?: number; baseRiskedNpvUsd?: number; upsideRiskedNpvUsd?: number; scenarioRangeRiskedNpvUsd?: number; }; selected: BudgetOptimizedInterventionCandidate[]; deferred: BudgetOptimizedInterventionCandidate[]; rejected: BudgetOptimizedInterventionCandidate[]; scenarioPortfolio: InterventionBudgetPortfolioScenario[]; reviewFlags: string[]; } export interface ExecutiveInterventionQuicklookGeologySourceInput { label: string; geologyDataset?: unknown; geologyPath?: string; } export interface ExecutiveInterventionQuicklookGeologySourceResult { label: string; slug: string; geologyDataset: GeologyDataset; artifacts: { geologyJson: string; }; } export interface ExecutiveInterventionQuicklookGeologySourceFitResult { leftLabel: string; rightLabel: string; comparison: GeologySourceFitComparisonResult; artifacts: { comparisonJson: string; comparisonMarkdown: string; }; } export interface ExecutiveInterventionQuicklookReviewItem { area: "production_quality" | "production_source_fit" | "geology_source_fit" | "intervention_candidate" | "budget_optimizer"; severity: "info" | "warning" | "error"; subject: string; reasons: string[]; artifactPaths: string[]; wellId?: string; candidateId?: string; } export interface ExecutiveInterventionQuicklookToolAction { action: string; label: string; status: "completed"; artifactPaths: string[]; summary: string; } export interface ExecutiveInterventionQuicklookArtifacts { executiveQuicklookJson: string; executiveQuicklookMarkdown: string; autocontextRunHtml: string; interventionScreenJson: string; interventionScreenMarkdown: string; interventionBudgetOptimizerJson: string; interventionBudgetOptimizerMarkdown: string; reviewQueueJson: string; } export interface ExecutiveInterventionQuicklookWorkflowInput { runDir: string; primarySource: SourceGovernedProductionSourceInput; comparisonSources?: SourceGovernedProductionSourceInput[]; primaryGeologySource?: ExecutiveInterventionQuicklookGeologySourceInput; comparisonGeologySources?: ExecutiveInterventionQuicklookGeologySourceInput[]; geologyDataset?: unknown; geologyPath?: string; typeCurveLibrary?: unknown; typeCurveLibraryPath?: string; candidateActions?: unknown; candidateActionsPath?: string; economicsAssumptions?: unknown; economicsAssumptionsPath?: string; scenarioDefinitions?: unknown; scenarioDefinitionsPath?: string; baseScenarioId?: string; forecastMonths?: number; budgetUsd: number; budgetConstraints?: InterventionBudgetOptimizerConstraints; generatedAt?: string; qualityOptions?: ProductionQualityAuditOptions; sourceFitTolerance?: ProductionSourceFitTolerancePolicy; geologySourceFitTolerance?: GeologySourceFitTolerance; requireSourceLicenses?: boolean; verifyDatasetFiles?: boolean; } export interface ExecutiveInterventionQuicklookWorkflowResult { schema: "oil-gas-impact-core/executive-intervention-quicklook/v1"; runDir: string; generatedAt: string; status: "pass" | "warn" | "fail"; summary: { budgetUsd: number; screenedWellCount: number; screenedCandidateCount: number; selectedCandidateCount: number; selectedCandidateIds: string[]; selectedCapitalUsd: number; selectedRiskedNpvUsd: number; selectedUnriskedNpvUsd: number; selectedMonthlyLoeSavingsUsd: number; remainingBudgetUsd: number; budgetUtilizationFraction: number; reviewQueueItemCount: number; productionGovernanceStatus: "pass" | "warn" | "fail"; geologyGovernanceStatus: "pass" | "warn" | "fail" | "not_evaluated"; topCandidateId?: string; finalAnswer: string; }; production: { primarySource: SourceGovernedProductionSourceResult; comparisonSources: SourceGovernedProductionSourceResult[]; sourceFitComparisons: SourceGovernedSourceFitResult[]; governance: { status: "pass" | "warn" | "fail"; reviewRequired: boolean; note: string; }; }; geology: { primarySource?: ExecutiveInterventionQuicklookGeologySourceResult; comparisonSources: ExecutiveInterventionQuicklookGeologySourceResult[]; sourceFitComparisons: ExecutiveInterventionQuicklookGeologySourceFitResult[]; governance: { status: "pass" | "warn" | "fail" | "not_evaluated"; reviewRequired: boolean; note: string; }; }; interventionScreen: WellInterventionScreenWorkflowResult; budgetOptimization: InterventionBudgetOptimizerResult; reviewQueue: ExecutiveInterventionQuicklookReviewItem[]; toolRun: { style: "autocontext"; actions: ExecutiveInterventionQuicklookToolAction[]; finalAnswer: string; boundary: string; }; artifacts: ExecutiveInterventionQuicklookArtifacts; } export declare function parseGeologyDataset(input: unknown): GeologyDataset; export declare function compareGeologySourceFit(leftInput: unknown, rightInput: unknown, options?: { leftLabel?: string; rightLabel?: string; tolerance?: GeologySourceFitTolerance; generatedAt?: string; }): GeologySourceFitComparisonResult; export declare function parseTypeCurveLibrary(input: unknown): TypeCurveLibrary; export declare function parseInterventionCandidates(input: unknown): InterventionCandidate[]; export declare function parseInterventionScenarioDefinitions(input: unknown): InterventionScenarioDefinition[]; export declare function analyzeWellEfficiency(normalizedProduction: NormalizedProductionDataset, economicsAssumptions?: unknown): WellEfficiencyMetrics[]; export declare function analyzeGeologyFit(geologyDataset: GeologyDataset | undefined, wellIds: string[]): GeologyFitResult[]; export declare function rankInterventionOpportunities(input: { normalizedProduction: NormalizedProductionDataset; geologyDataset?: GeologyDataset; typeCurveLibrary?: TypeCurveLibrary; economicsAssumptions: unknown; candidates?: InterventionCandidate[]; scenarioDefinitions?: InterventionScenarioDefinition[]; baseScenarioId?: string; forecastMonths?: number; generatedAt?: string; }): { efficiency: WellEfficiencyMetrics[]; geologyFit: GeologyFitResult[]; opportunities: InterventionOpportunityResult[]; }; export declare function runInterventionBudgetOptimizer(input: InterventionBudgetOptimizerInput): InterventionBudgetOptimizerResult; export declare function runWellInterventionScreenWorkflow(input: WellInterventionScreenWorkflowInput): Promise; export declare function runExecutiveInterventionQuicklookWorkflow(input: ExecutiveInterventionQuicklookWorkflowInput): Promise; export {}; //# sourceMappingURL=interventions.d.ts.map