2026-04-04 06:38:52 +00:00
|
|
|
import type { SessionTokenUsage, StdinData } from './types.js';
|
|
|
|
|
export interface SessionCostEstimate {
|
|
|
|
|
totalUsd: number;
|
|
|
|
|
inputUsd: number;
|
|
|
|
|
cacheCreationUsd: number;
|
|
|
|
|
cacheReadUsd: number;
|
|
|
|
|
outputUsd: number;
|
|
|
|
|
}
|
2026-04-05 01:01:58 +00:00
|
|
|
export interface SessionCostDisplay {
|
|
|
|
|
totalUsd: number;
|
|
|
|
|
source: 'native' | 'estimate';
|
|
|
|
|
}
|
2026-04-04 06:38:52 +00:00
|
|
|
export declare function estimateSessionCost(stdin: StdinData, sessionTokens: SessionTokenUsage | undefined): SessionCostEstimate | null;
|
2026-04-05 01:01:58 +00:00
|
|
|
export declare function resolveSessionCost(stdin: StdinData, sessionTokens: SessionTokenUsage | undefined): SessionCostDisplay | null;
|
2026-04-04 06:38:52 +00:00
|
|
|
export declare function formatUsd(amount: number): string;
|
|
|
|
|
//# sourceMappingURL=cost.d.ts.map
|