import type { Core } from '@strapi/types'; import type { RegistriesFactory } from '../registries'; import type { Timer } from '../utils'; export type ContextRegistries = ReturnType; export interface TimeStats { startTime: number; endTime: number; elapsedTime: number; } export interface Stats { time: TimeStats; } export interface ContextOutput { data: T; stats: Stats; } export interface Context { routes: Core.Route[]; strapi: Core.Strapi; timer: Timer; registries: ContextRegistries; output: ContextOutput; } export type PartialContext = Partial, 'timer' | 'registries'>> & Required, 'strapi' | 'routes'>>; export interface ContextFactory { create(context: PartialContext, defaultValue: T): Context; } //# sourceMappingURL=types.d.ts.map