import type { SimpleStreamOptions } from '@earendil-works/pi-ai'; export declare function withUsageReceiptContext(id: string, action: () => T, operation?: string): T; export declare function currentUsageRequestContext(): { id: string; operation?: string; } | undefined; export declare function captureCloudUsageResponse(response: { status: number; headers: Headers | Record; }): void; /** Preserve existing response hooks while linking the physical Cloud request to its usage row. */ export declare function withCloudUsageResponse(options?: SimpleStreamOptions): SimpleStreamOptions; /** Bounded, read-only synchronization. Missing authorization or receipt never becomes a zero charge. */ export declare function reconcileCloudUsageReceipt(id: string): Promise;