export type APIErrorCode = typeof SITEKEY_INVALID | typeof AUTH_INVALID | typeof AUTH_REQUIRED | typeof BAD_REQUEST | typeof TOKEN_INVALID | typeof TOKEN_EXPIRED | typeof TOKEN_MISSING | typeof RESPONSE_TIMEOUT | typeof RESPONSE_DUPLICATE | typeof RESPONSE_INVALID | typeof RESPONSE_MISSING | typeof INTERNAL_SERVER_ERROR; /** * The API key you provided was invalid. * * HTTP status 401. */ export declare const AUTH_INVALID = "auth_invalid"; /** * You forgot to set the `X-API-Key` header. * * HTTP status 401. */ export declare const AUTH_REQUIRED = "auth_required"; /** * The sitekey in your request is invalid. * * HTTP status 400. */ export declare const SITEKEY_INVALID = "sitekey_invalid"; /** * Something else is wrong with your request, e.g. your request body is empty. */ export declare const BAD_REQUEST = "bad_request"; /** * The token you provided was invalid. * * HTTP status 200. */ export declare const TOKEN_INVALID = "token_invalid"; /** * The token has expired. * * HTTP status 200. */ export declare const TOKEN_EXPIRED = "token_expired"; /** * You forgot to add the token parameter. * * HTTP status 400. */ export declare const TOKEN_MISSING = "token_missing"; /** * The response has expired. * * HTTP status 200. */ export declare const RESPONSE_TIMEOUT = "response_timeout"; /** * The response has already been used. * * HTTP status 200. */ export declare const RESPONSE_DUPLICATE = "response_duplicate"; /** * The response you provided was invalid (perhaps the user tried to work around the captcha). * * HTTP status 200. */ export declare const RESPONSE_INVALID = "response_invalid"; /** * You forgot to add the response parameter. * * HTTP status 400. */ export declare const RESPONSE_MISSING = "response_missing"; /** * Something went wrong within the server. (Should never happen). * * HTTP status 500. */ export declare const INTERNAL_SERVER_ERROR = "internal_server_error"; export declare const ERROR_CODE_TO_STATUS: Record;