import { Temporal } from '@js-temporal/polyfill'; declare function getBigID(offset?: bigint): bigint; type BigUUID = { id: bigint; mn: string; }; type UUID = { id: number; ts: number; mn: string; }; declare function getBigUUID({ id, mn }: BigUUID): string; type UUIDTimeStamp = BigUUID & { timestamp: number; }; declare function parseBUUID(uuid: string, offset?: bigint): UUIDTimeStamp | null; declare function getTransactionTime(uuid: string): Temporal.Instant | null; /** * Generates a URL-friendly slug from a string * @param text The text to convert to a slug * @returns A URL-friendly slug */ declare function generateSlug(text: string): string; /** * Generates a unique ID based on a name with fallback to random ID * @param name The name to base the ID on * @param checkExists Function to check if ID already exists * @param maxAttempts Maximum number of attempts to add counter * @returns A unique ID string */ declare function generateNameBasedId(name: string, checkExists: (id: string) => Promise, maxAttempts?: number): Promise; /** * Gets current timestamp as number */ declare function getCurrentTimestamp(): number; /** * Creates a default user for audit fields when no real user data is available * Should be replaced with actual user authentication data in production */ declare const getDefaultUser: () => { id: string; name: string; src: string; }; declare const getCurrentUser: () => { id: string; name: string; src: string; }; export { type BigUUID, type UUID, type UUIDTimeStamp, generateNameBasedId, generateSlug, getBigID, getBigUUID, getCurrentTimestamp, getCurrentUser, getDefaultUser, getTransactionTime, parseBUUID };