export declare class GlobalError extends Error { message: string; path: string; constructor(message: string, path: string); } export declare const errMiddleware: (handler: () => Promise) => Promise; export declare const typeGuard: (source: Record, key: keyof T) => source is T; export declare const sourceContainUserIdOrThrow: (source: any) => void; export type SourceWithUserId = { userId: string; }; type ConvertDates = { createdAt?: Date; startDate?: Date; updatedAt?: Date; }; export declare const convertDateObjToStringForArray: (arr: T[]) => { createdAt: string | null; updatedAt: string | null; startDate: string | null; }[]; export declare const convertDatedObjToString: (obj: T | null) => { createdAt: string | null; updatedAt: string | null; startDate: string | null; }; export {};