Files
clawbot/skills/remotion-prompt-video/node_modules/@remotion/licensing/dist/get-usage.d.ts
T

22 lines
594 B
TypeScript

import type { EitherApiKeyOrLicenseKey } from './register-usage-event';
export type EventCount = {
billable: number;
failed: number;
development: number;
};
export type GetUsageApiResponse = {
success: true;
cloudRenders: EventCount;
webcodecConversions: EventCount;
} | {
success: false;
error: string;
};
export type GetUsageResponse = {
cloudRenders: EventCount;
webcodecConversions: EventCount;
};
export declare const getUsage: ({ since, ...apiOrLicenseKey }: {
since?: number | null;
} & EitherApiKeyOrLicenseKey) => Promise<GetUsageResponse>;