import {IApiParamsCollection} from "./IApiParamsCollection";
import {Hanger, HangerIndex} from "./TypeDefine";

interface IApi {
    path?: string,
    method?: string,
    params?: IApiParamsCollection | string[],
    paramsDefault?: "body" | "query" | "path",
    limit?: number,
    cachePolicy?: "noCache" | "always" | "save" | "dynamic",
    expirationTime?: number,
    cacheKey?: string,
    hanger?: HangerIndex<this> | HangerIndex<this>[]
}

export {IApi}