/** * Status enum for discriminated union results */ export declare enum Status { SUCCESS = "SUCCESS", ERROR = "ERROR" } /** * Discriminated union for safe API results */ export type SafeResult = { status: Status.SUCCESS; data: T; } | { status: Status.ERROR; data: E; }; /** * Type helper to extract success data type */ export type SuccessData = T extends { status: Status.SUCCESS; data: infer D; } ? D : never; /** * Type helper to extract error data type */ export type ErrorData = T extends { status: Status.ERROR; data: infer E; } ? E : never; /** * Type helper for API response results */ export type ApiResult = SafeResult; //# sourceMappingURL=status-types.d.ts.map