/** * Lemma API v2 — TokenCounter (Lane E) * * Real token counting of a payload. The count is determined by the actual content * of the payload, never by an average-per-request constant. When a count cannot be * produced reliably the method returns `null` and the caller omits the event from * reports rather than estimating (the `excludedEvents` counter in UsageResponse). * * This is a best-effort, dependency-free tokenizer. It is deterministic and fully * reproducible from the payload, which is what the product's auditability requires. * No library is loaded here — `package.json` is frozen for this lane. */ export declare class TokenCounter { readonly lane = "E"; /** * Measure the token count of a payload. * * Returns: * - a `number` >= 0 when the payload is measurable (counted from its content). * - `null` when the payload cannot be reliably measured (missing, not a string, * or otherwise unmeasurable) — the caller must omit the event, not estimate. */ count(payload: string): number | null; } export default TokenCounter; //# sourceMappingURL=TokenCounter.d.ts.map