export default interface IServiceResponse { success: boolean; message: string; payload: T; } /** * Returns a new service response, appending an error message if the input sr failed. * * @param sr - existing service response * @param message - additional message to append if sr wasn't successful */ export declare function getServiceResponse(sr: IServiceResponse, message?: string): IServiceResponse; /** * Returns a successful IServiceResponse with the given payload. * * @param payload - payload to return */ export declare function successfulServiceResponse(payload: T): IServiceResponse; /** * Returns a failure service response with the given error message. * * @param message - error message */ export declare function failureServiceResponse(message: string): IServiceResponse; export declare function isServiceResponse(sr: any): sr is IServiceResponse;