import { Strapi } from '@strapi/strapi'; export declare function createRequest({ strapi }: { strapi: Strapi; }): (options: any) => any; export declare function createContentAPIRequest({ strapi }: { strapi: Strapi; }): (options: any) => any; export declare function createAuthRequest({ strapi, userInfo }: { strapi: any; userInfo?: { email: string; firstname: string; lastname: string; password: string; }; }): any; export declare function transformToRESTResource(input: any): any; /** * Check if response error contains error with given ID * @param {string} errorId ID of given error * @param {object} response Response object from strapi controller * @example * * const response = {"statusCode":400,"error":"Bad Request","message":[{"messages":[{"id":"Auth.form.error.confirmed","message":"Your account email is not confirmed"}]}],"data":[{"messages":[{"id":"Auth.form.error.confirmed","message":"Your account email is not confirmed"}]}]} * responseHasError("Auth.form.error.confirmed", response) // true */ export declare function responseHasError(errorId: any, response: any): boolean;