import { ServiceParams } from "@3kles/3kles-corebe";

export interface IMIRequest {
    path: string;
    method: string;
    body?: any;
    contentType?: string;
    params?: { [key: string]: any };
    query?: { [key: string]: any };
    cookie?: string;
    authorization?: string;
}

export interface IIonRoute {
    middleware?: string;
    routingKey?: string;
    routes: ServiceParams;
}

export interface IIonMessage {
    key: string;
    data?: any;
    params?: { [key: string]: any };
    query?: { [key: string]: any };
}

export interface IError {
    status: number;
    message?: string;
}
