import { Context, Effect } from 'effect'; /** * Generates the `_u` meta field: a monotonic ULID. * * The factory state is module-scoped, so same-millisecond calls within an * isolate produce strictly ascending IDs — even where the clock is frozen * during synchronous execution (e.g. Cloudflare Workers). Override in tests * via `Effect.provideService(Ulid, () => ...)` for deterministic IDs. */ export declare const Ulid: Context.Reference<() => string>; /** Yields a fresh monotonic ULID from the {@link Ulid} generator. */ export declare const nextUlid: Effect.Effect; /** * Extracts the millisecond timestamp from a `_u` value, format-agnostic: * a ULID yields its embedded time, an ISO-8601 string yields its parse time * (for backends that stamp `_u` with timestamps instead of ULIDs), and any * other value yields `null`. */ export declare const uTime: (u: string) => number | null; //# sourceMappingURL=ulid.d.ts.map