/** * Represents the event data. */ type MeteringEventData = { project_id: string; model: string; type: string; total_tokens?: number; duration_ms?: number; call_count?: number; word_count?: number; }; /** * Represents the event. */ type MeteringEvent = { specversion: string; type: string; id: string; time: string; source: string; subject: string; data: any; }; /** * Sends a metering event to the OpenMeter server. * * @param {string} projectId - The id of the project. * @param {string} model - The model used for the completion. * @param {string} type - The type of the event. * @param {number} totalTokens - The total number of tokens, optional. * @param {number} durationMs - The duration in milliseconds, optional. * @param {number} callCount - The number of completions, optional. * @return {Promise} Indicates whether the event was sent successfully. */ declare function sendMeteringEvent(data: MeteringEventData): Promise; export { sendMeteringEvent, type MeteringEvent, type MeteringEventData };