import { z } from "zod"; import { type NormalizedProductionDataset } from "./schemas.js"; export type LeaseOperatingCostCategory = "loe" | "water_handling" | "workover" | "transportation" | "taxes" | "g_and_a" | "capex" | "other"; export type LeaseOperatingCategoryMap = Record; declare const LeaseOperatingStatementLineSchema: z.ZodObject<{ wellId: z.ZodString; month: z.ZodString; accountCode: z.ZodString; accountName: z.ZodOptional; category: z.ZodDefault>; amountUsd: z.ZodNumber; vendorName: z.ZodOptional; invoiceId: z.ZodOptional; afeId: z.ZodOptional; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; month: string; accountCode: string; category: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex"; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }, { wellId: string; month: string; accountCode: string; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }>; declare const LeaseOperatingStatementSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"oil-gas-lease-operating-statement/v1">; generatedAt: z.ZodOptional; lines: z.ZodArray; category: z.ZodDefault>; amountUsd: z.ZodNumber; vendorName: z.ZodOptional; invoiceId: z.ZodOptional; afeId: z.ZodOptional; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; month: string; accountCode: string; category: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex"; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }, { wellId: string; month: string; accountCode: string; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: "oil-gas-lease-operating-statement/v1"; lines: { wellId: string; month: string; accountCode: string; category: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex"; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }[]; generatedAt?: string | undefined; }, { schemaVersion: "oil-gas-lease-operating-statement/v1"; lines: { wellId: string; month: string; accountCode: string; amountUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountName?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; vendorName?: string | undefined; invoiceId?: string | undefined; afeId?: string | undefined; }[]; generatedAt?: string | undefined; }>; declare const LeaseOperatingBudgetLineSchema: z.ZodObject<{ wellId: z.ZodString; month: z.ZodString; budgetUsd: z.ZodNumber; category: z.ZodOptional>; accountCode: z.ZodOptional; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }, { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }>; declare const LeaseOperatingBudgetSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<"oil-gas-lease-operating-budget/v1">; generatedAt: z.ZodOptional; lines: z.ZodArray>; accountCode: z.ZodOptional; sourceId: z.ZodOptional; notes: z.ZodOptional; }, "strip", z.ZodTypeAny, { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }, { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { schemaVersion: "oil-gas-lease-operating-budget/v1"; lines: { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }[]; generatedAt?: string | undefined; }, { schemaVersion: "oil-gas-lease-operating-budget/v1"; lines: { wellId: string; month: string; budgetUsd: number; sourceId?: string | undefined; notes?: string | undefined; accountCode?: string | undefined; category?: "other" | "workover" | "taxes" | "loe" | "water_handling" | "transportation" | "g_and_a" | "capex" | undefined; }[]; generatedAt?: string | undefined; }>; export type LeaseOperatingStatementLine = z.infer; export type LeaseOperatingStatement = z.infer; export type LeaseOperatingBudgetLine = z.infer; export type LeaseOperatingBudget = z.infer; export type CsvFieldSelector = string | readonly string[]; export type LeaseOperatingStatementLineField = "wellId" | "month" | "accountCode" | "accountName" | "category" | "amountUsd" | "vendorName" | "invoiceId" | "afeId" | "sourceId" | "notes"; export type LeaseOperatingStatementLineFieldMapping = Partial>; export interface LeaseOperatingStatementImportOptions { fieldMapping?: LeaseOperatingStatementLineFieldMapping; categoryMap?: LeaseOperatingCategoryMap; defaults?: Partial; generatedAt?: string; } export type LeaseOperatingBudgetLineField = "wellId" | "month" | "budgetUsd" | "category" | "accountCode" | "sourceId" | "notes"; export type LeaseOperatingBudgetLineFieldMapping = Partial>; export interface LeaseOperatingBudgetImportOptions { fieldMapping?: LeaseOperatingBudgetLineFieldMapping; categoryMap?: LeaseOperatingCategoryMap; defaults?: Partial; generatedAt?: string; } export interface LeaseOperatingStatementReviewInput { runDir: string; productionDataset?: unknown; productionPath?: string; normalizedProduction?: unknown; normalizedProductionPath?: string; statement?: unknown; statementPath?: string; budget?: unknown; budgetPath?: string; categoryMap?: LeaseOperatingCategoryMap; generatedAt?: string; costPerBoeWarnUsd?: number; costPerBoeFailUsd?: number; loePerBoeWarnUsd?: number; loePerBoeFailUsd?: number; waterHandlingPerWaterBblWarnUsd?: number; budgetVarianceWarnUsd?: number; budgetVarianceWarnFraction?: number; } export interface LeaseOperatingStatementReviewItem { severity: "info" | "warning" | "error"; code: string; message: string; wellId?: string; month?: string; accountCode?: string; amountUsd?: number; costPerBoeUsd?: number; varianceUsd?: number; varianceFraction?: number; } export interface LeaseOperatingStatementMonthlyReview { wellId: string; month: string; boe: number; oilBbl: number; gasMcf: number; waterBbl: number; costUsd: number; loeUsd: number; capexUsd: number; categoryCostsUsd: Record; lineCount: number; costPerBoeUsd?: number; loePerBoeUsd?: number; waterHandlingCostPerWaterBblUsd?: number; budgetUsd?: number; varianceUsd?: number; varianceFraction?: number; status: "pass" | "warn" | "fail"; flags: string[]; } export interface LeaseOperatingStatementCategorySummary { category: LeaseOperatingCostCategory; lineCount: number; amountUsd: number; percentOfTotalCost: number; } export interface LeaseOperatingStatementReviewArtifacts { normalizedProductionJson: string; reviewJson: string; reviewMarkdown: string; reviewQueueJson: string; } export interface LeaseOperatingStatementReviewResult { schema: "oil-gas-impact-core/lease-operating-statement-review/v1"; runDir: string; generatedAt: string; status: "pass" | "warn" | "fail"; summary: { wellCount: number; monthCount: number; costLineCount: number; totalCostUsd: number; totalLoeUsd: number; totalCapexUsd: number; totalBoe: number; averageCostPerBoeUsd?: number; highCostPerBoeWellMonthCount: number; budgetVarianceCount: number; missingProductionCostLineCount: number; reviewQueueItemCount: number; topCostWellId?: string; topCostMonth?: string; }; thresholds: Required>; normalizedProduction: NormalizedProductionDataset; statement: LeaseOperatingStatement; budget?: LeaseOperatingBudget; monthly: LeaseOperatingStatementMonthlyReview[]; categorySummary: LeaseOperatingStatementCategorySummary[]; reviewQueue: LeaseOperatingStatementReviewItem[]; artifacts: LeaseOperatingStatementReviewArtifacts; } export declare function parseLeaseOperatingStatement(input: unknown): LeaseOperatingStatement; export declare function parseLeaseOperatingBudget(input: unknown): LeaseOperatingBudget; export declare function parseLeaseOperatingCategoryMap(value: unknown): LeaseOperatingCategoryMap; export declare function applyLeaseOperatingStatementCategoryMap(statement: LeaseOperatingStatement, categoryMap: LeaseOperatingCategoryMap | undefined): LeaseOperatingStatement; export declare function applyLeaseOperatingBudgetCategoryMap(budget: LeaseOperatingBudget, categoryMap: LeaseOperatingCategoryMap | undefined): LeaseOperatingBudget; export declare function mapLeaseOperatingStatementLine(rowValue: Record, options?: LeaseOperatingStatementImportOptions): LeaseOperatingStatementLine; export declare function parseLeaseOperatingStatementCsv(csv: string, options?: LeaseOperatingStatementImportOptions): LeaseOperatingStatement; export declare function loadLeaseOperatingStatementFromFile(path: string, options?: LeaseOperatingStatementImportOptions): Promise; export declare function mapLeaseOperatingBudgetLine(rowValue: Record, options?: LeaseOperatingBudgetImportOptions): LeaseOperatingBudgetLine; export declare function parseLeaseOperatingBudgetCsv(csv: string, options?: LeaseOperatingBudgetImportOptions): LeaseOperatingBudget; export declare function loadLeaseOperatingBudgetFromFile(path: string, options?: LeaseOperatingBudgetImportOptions): Promise; export declare function runLeaseOperatingStatementReview(input: LeaseOperatingStatementReviewInput): Promise; export {}; //# sourceMappingURL=accounting.d.ts.map