import { UnsupportedClientError } from '@playdrop/types/api';
export type ApiResponseLike<T> = {
    status: number;
    body: T;
    headers: Headers;
};
export declare function parseUnsupportedError(status: number, payload: unknown): UnsupportedClientError | null;
export declare function handleApiError(response: ApiResponseLike<any>, context: string): never;
//# sourceMappingURL=errors.d.ts.map