import type { IVerifiableCredential } from '@interop/data-integrity-core'; export declare const CREDENTIALS_CONTEXT_V1_URL: string; export declare const CREDENTIALS_CONTEXT_V2_URL: string; export declare const dateRegex: RegExp; /** * Asserts that a context array's first item is a credentials context. * * @throws {Error} If the first context is not a credentials context. */ export declare function assertCredentialContext({ context }: { context: unknown[]; }): void; /** * Throws if a Date is not in the correct format. * * @throws {Error} Throws if the date is not a proper date string. */ export declare function assertDateString({ credential, prop }: { credential: Record; prop: string; }): void; /** * Checks if a VC is using a specific context version. * * @returns True if the first context matches the version. */ export declare function checkContextVersion({ credential, version }: { credential?: IVerifiableCredential; version: number; }): boolean; /** * Compares two times with consideration of max clock skew. * * `maxClockSkew` is in seconds. Returns a number greater than, equal to, or * less than zero, comparable to a sort comparator. */ export declare function compareTime({ t1, t2, maxClockSkew }: { t1: Date | number; t2: Date | number; maxClockSkew: number; }): number; //# sourceMappingURL=helpers.d.ts.map