import { DwnResponseStatus } from '@web5/agent';
import { ResponseInfo } from './types.js';
export declare class ResponseUtils {
    static is2xx: (code: number) => boolean;
    static is3xx: (code: number) => boolean;
    static OK: (ok: boolean) => boolean;
    static notOK: (ok: boolean) => boolean;
    static codeSuccess: (statusCode: number) => boolean;
    static codeFail: (statusCode: number) => boolean;
    static statusOk: (status: string) => status is "OK";
    static statusNotOk: (status: string) => boolean;
    static dwnSuccess: ({ status: { code, detail } }: DwnResponseStatus) => boolean;
    static dwnFail: (status: DwnResponseStatus) => boolean;
    static success: ({ ok, code, status }: ResponseInfo) => boolean;
    static fail: (info: ResponseInfo) => boolean;
    static fetchSuccess: (response: Response) => boolean;
    static fetchFail: (response: Response) => boolean;
}
//# sourceMappingURL=response.d.ts.map