export type ResponseSuccessType = { ResponseDetail: D; }; export type BaseErrorType = { ErrorCode: NumericalString; Error: string; }; export type BaseResponse = T extends true ? { HasError: true; ErrorCode: NumericalString; Error: string; } : { HasError: false; ResponseDetail: D; }; export declare function parserSafe2PayResponse(response: Response): Promise; export declare const joinPath: (...paths: string[]) => string; export declare function objectToPath(obj: AnyObject, position?: Record): string;