import type { Context, ExecutionContext } from "./types.js"; import type { ApplicationIdentity } from "../../security/application-auth/types.js"; /** Context for middleware. */ export declare class MiddlewareContext implements Context { req: Request; request: Request; identity: ApplicationIdentity | null; applicationIdentity: ApplicationIdentity | null; env: Record; executionCtx?: ExecutionContext; var: Record; private store; constructor(req: Request, env?: Record, executionCtx?: ExecutionContext, identity?: ApplicationIdentity | null); json(object: unknown, init?: ResponseInit): Response; private respondWithContent; text(text: string, init?: ResponseInit): Response; html(html: string, init?: ResponseInit): Response; redirect(location: string, status?: number): Response; set(key: string, value: unknown): void; get(key: string): unknown; } //# sourceMappingURL=context.d.ts.map