import type { Request } from "@cloudflare/workers-types"; import type { CoreAuthInput } from "../core/types.js"; import type { ClientUsageV2Event, UsageV2Event, UsageV2Source } from "../core/usageV2.js"; type UsageV2Options = { usageBaseUrl: string; source: UsageV2Source; authInput: CoreAuthInput & { req?: Request; }; serviceKey?: string; }; /** * Send usageV2 events from either internal services or public clients. * * This method may throw. To call this non-blocking: * ```ts * void sendUsageV2Events(...).catch((e) => console.error(e)) * ``` */ export declare function sendUsageV2Events(events: T extends { serviceKey: string; } ? UsageV2Event[] : ClientUsageV2Event[], options: T): Promise; export {}; //# sourceMappingURL=usageV2.d.ts.map