import { IAPIProps } from '../services'; import { TPlatform } from '../types'; interface IApiResourceState { loading: boolean; error?: string; data?: T; } interface IApiResource extends IApiResourceState { fetchResource: () => Promise; } export declare function useApi({ resourcePath, method, data, pagination }: IAPIProps, platform?: TPlatform): IApiResource; export {};