import { Stringifyable, StringifyableRecord } from './type-helper.js'; export type Methods = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'TRACE' | 'OPTIONS' | 'PATCH'; export type ParamKeyType = 'string' | 'number' | 'boolean'; export type ParamValueType = string | number | boolean; export type QueryParameters = Record; export interface AlwatrServiceResponseFailed extends StringifyableRecord { ok: false; statusCode: number; errorCode: string; meta?: StringifyableRecord; data?: never; } export interface AlwatrServiceResponseSuccess extends StringifyableRecord { ok: true; statusCode?: number; errorCode?: never; meta?: never; data: TData; } export interface AlwatrServiceResponseSuccessWithMeta extends StringifyableRecord { ok: true; statusCode?: number; errorCode?: never; meta: TMeta; data: TData; } export type AlwatrServiceResponse = AlwatrServiceResponseSuccess | AlwatrServiceResponseSuccessWithMeta | AlwatrServiceResponseFailed; //# sourceMappingURL=service-response.d.ts.map