import { ResponseLens } from "../lenses"; import { Result } from "@http4t/result"; export type AuthError = { reason: 'unauthorized' | 'forbidden'; message: string; }; /** * Gets/sets {@link AuthError} as json response body, with {@link AuthError#reason} mapped to response codes of: * * * 'unauthorized' <-> 401 * * 'forbidden' <-> 403 */ export declare function authError(): ResponseLens; export declare function authErrorOr(successLens: ResponseLens): ResponseLens>; //# sourceMappingURL=authError.d.ts.map