import { z } from "zod"; export declare const exactCentsSchema: z.ZodPipe, z.ZodTransform>; export declare const pricingProvenanceSchema: z.ZodObject<{ source: z.ZodDefault>; version: z.ZodOptional; evidence: z.ZodOptional; inputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cachedInputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; outputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cacheWriteCentsPerMillion: z.ZodOptional, z.ZodTransform>>; serviceTier: z.ZodOptional; contextTier: z.ZodOptional>; }, z.core.$strip>; export declare const importBillingInvoiceSchema: z.ZodObject<{ biller: z.ZodString; externalId: z.ZodString; currency: z.ZodPipe>; lines: z.ZodArray>; amountCents: z.ZodPipe, z.ZodTransform>; occurredAt: z.ZodISODateTime; costEventId: z.ZodOptional; runId: z.ZodOptional; providerRequestId: z.ZodOptional; model: z.ZodOptional; pricing: z.ZodOptional>; version: z.ZodOptional; evidence: z.ZodOptional; inputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cachedInputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; outputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cacheWriteCentsPerMillion: z.ZodOptional, z.ZodTransform>>; serviceTier: z.ZodOptional; contextTier: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export declare const adjustCostSchema: z.ZodObject<{ idempotencyKey: z.ZodString; expectedCents: z.ZodPipe, z.ZodTransform>; correctedCents: z.ZodPipe, z.ZodTransform>; invoiceLineId: z.ZodOptional; reason: z.ZodString; pricing: z.ZodObject<{ source: z.ZodDefault>; version: z.ZodOptional; evidence: z.ZodOptional; inputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cachedInputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; outputCentsPerMillion: z.ZodOptional, z.ZodTransform>>; cacheWriteCentsPerMillion: z.ZodOptional, z.ZodTransform>>; serviceTier: z.ZodOptional; contextTier: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>; export declare const repairAccountingSchema: z.ZodObject<{ fingerprint: z.ZodString; reason: z.ZodString; }, z.core.$strip>; export declare const retryAccountingSchema: z.ZodObject<{ runId: z.ZodString; }, z.core.$strip>; export declare const importProviderCostsSchema: z.ZodObject<{ provider: z.ZodEnum<{ anthropic: "anthropic"; openai: "openai"; }>; secretId: z.ZodString; accountId: z.ZodString; scopeIds: z.ZodArray; from: z.ZodISODate; to: z.ZodISODate; }, z.core.$strip>; export type ImportProviderCosts = z.input; export type ImportBillingInvoice = z.input; export type AdjustCost = z.input; export interface AccountingFinding { kind: "company_projection" | "agent_projection" | "runtime_projection" | "missing_receipt" | "missing_acknowledgement" | "legacy_runtime" | "receipt_mismatch"; entityId: string; repairable: boolean; actual: Record; expected: Record; } export interface AccountingInspection { companyId: string; fingerprint: string; findings: AccountingFinding[]; checkedAt: string; } export interface AccountingHealth { companyId: string; pendingRunCount: number; unpricedEventCount: number; oldestPendingAt: string | null; pendingCancellationCount: number; heldReservationCents: string; items: Array<{ runId: string | null; costEventId?: string; agentId: string | null; state: "waiting_for_receipt" | "retryable" | "unpriced"; lastError: string | null; attempts: number; since: string; lastAttemptAt: string | null; }>; } export interface BillingInvoice { id: string; companyId: string; biller: string; externalId: string; currency: string; createdAt: string; } export interface CostAdjustment { id: string; companyId: string; costEventId: string; invoiceLineId: string | null; idempotencyKey: string; receiptHash: string; previousCents: string; correctedCents: string; previousStatus: string; previousPricing: Record; pricing: Record; reason: string; actorId: string; createdAt: string; } export interface BillingReconciliation { invoice: BillingInvoice; lines: Array<{ id: string; externalId: string; kind: string; amountCents: string; status: string; matchedEventId: string | null; recordedCents: string | null; differenceCents: string | null; }>; } //# sourceMappingURL=accounting.d.ts.map