@atproto/common-web
Version:
Shared web-platform-friendly code for atproto libraries
20 lines • 656 B
TypeScript
export declare class TID {
str: string;
constructor(str: string);
static next(prev?: TID): TID;
static nextStr(prev?: string): string;
static fromTime(timestamp: number, clockid: number): TID;
static fromStr(str: string): TID;
static oldestFirst(a: TID, b: TID): number;
static newestFirst(a: TID, b: TID): number;
static is(str: string): boolean;
timestamp(): number;
clockid(): number;
formatted(): string;
toString(): string;
compareTo(other: TID): number;
equals(other: TID): boolean;
newerThan(other: TID): boolean;
olderThan(other: TID): boolean;
}
//# sourceMappingURL=tid.d.ts.map