export interface IFetchApiProps { url: string; headers?: object; } export interface IFetchByIdApiProps extends IFetchApiProps { id: string; } export interface IFetchPostProps extends IFetchApiProps { body: object; } export interface IFetchPutProps extends IFetchApiProps { body: object; id: string; } export interface IFetchFilterProps extends IFetchApiProps { params: object; } declare class FetchApi { seeAllMethods(): void; getApi({ url, headers }: IFetchApiProps): Promise | undefined; getByIdApi({ url, id, headers }: IFetchByIdApiProps): Promise | undefined; postApi({ url, body, headers }: IFetchPostProps): Promise | undefined; putApi({ url, id, headers, body }: IFetchPutProps): Promise | undefined; patchApi({ url, id, headers, body }: IFetchPutProps): Promise | undefined; deleteApi({ url, id, headers }: IFetchPutProps): Promise | undefined; filterApi({ url, params, headers }: IFetchFilterProps): Promise | undefined; } declare const api: FetchApi; declare const getApi: ({ url, headers }: IFetchApiProps) => Promise | undefined; declare const getByIdApi: ({ url, id, headers }: IFetchByIdApiProps) => Promise | undefined; declare const seeAllMethods: () => void; declare const postApi: ({ url, body, headers }: IFetchPostProps) => Promise | undefined; declare const putApi: ({ url, id, headers, body }: IFetchPutProps) => Promise | undefined; declare const patchApi: ({ url, id, headers, body }: IFetchPutProps) => Promise | undefined; declare const deleteApi: ({ url, id, headers }: IFetchPutProps) => Promise | undefined; declare const filterApi: ({ url, params, headers }: IFetchFilterProps) => Promise | undefined; export { getApi, getByIdApi, api, seeAllMethods, postApi, putApi, deleteApi, patchApi, filterApi, };