@maximai/maxim-js
Version:
Maxim AI JS SDK. Visit https://getmaxim.ai for more info.
12 lines (11 loc) • 458 B
TypeScript
export declare function generateUniqueId(): string;
export declare const getAllKeysByValue: <T extends object, V extends T[keyof T]>(obj: T, value: V) => (keyof T)[];
export type ExtractAPIDataType<T> = T extends {
data: infer D;
} ? D : never;
/**
* Generates a collision-resistant unique identifier (CUID)
* Format: c<timestamp><counter><fingerprint><random>
* @returns A unique identifier string
*/
export declare function generateCuid(): string;