import { Subset } from '@sudoplatform/sudo-common'; /** * Result Status from API. * */ export declare enum APIResultStatus { Success = "Success", Partial = "Partial" } /** * Successful state of API Result. * * @property {APIResultStatus.Success} status Success status. * @property {T} result Result of the API. */ export interface APISuccess { status: APIResultStatus.Success; result: T; } /** * Partial state of API Result. * * @property {APIResultStatus.Partial} status Partial status. * @property {Omit} result Result of the API. * @property {Error} cause Cause of the error to return the partial result. */ export interface APIPartial { status: APIResultStatus.Partial; result: Omit; cause: Error; } /** * API Result. * * Used when a result only partially fails (such as unsealing). */ export type APIResult = T> = APISuccess | APIPartial;