import type { Schema, UID } from '../..'; import type { ServiceInstance, ServiceParams } from './service-instance'; export type Context = { [TUIDKey in TUID]: { [TKey in keyof ServiceParams]: { contentType: Schema.ContentType; uid: TUIDKey; action: TKey; params: ServiceParams[TKey]; }; }[keyof ServiceParams]; }[TUID]; export type Middleware = (ctx: Context, next: () => ReturnType) => ReturnType extends Promise ? Promise : Promise>; //# sourceMappingURL=middleware.d.ts.map