@yogesh0333/yogiway
Version:
YOGIWAY Format - Ultra-compact, nested-aware data format for LLM prompts. Handles deeply nested JSON efficiently, 10-15% more efficient than TOON.
38 lines • 1.07 kB
TypeScript
/**
* Premium License Verification System for YOGIWAY Library
* Only verified premium users can use the library
*/
export interface LicenseInfo {
isValid: boolean;
type: "trial" | "premium" | "enterprise" | "monthly" | "yearly";
expiresAt?: number;
userId?: string;
licenseKey?: string;
trialStartedAt?: number;
subscriptionPlan?: "monthly" | "yearly";
}
/**
* Activate premium license
*/
export declare function activateLicense(licenseKey: string): Promise<LicenseInfo>;
/**
* Get remaining trial days
*/
export declare function getRemainingTrialDays(): number;
/**
* Check if license is valid (synchronous check using cache)
*/
export declare function checkLicense(): LicenseInfo;
/**
* Verify license (async, checks with server)
*/
export declare function verifyLicense(licenseKey?: string): Promise<LicenseInfo>;
/**
* Require valid license or throw error
*/
export declare function requireLicense(): void;
/**
* Clear cached license
*/
export declare function clearLicense(): void;
//# sourceMappingURL=license.d.ts.map