import type * as Sealious from "../main.js"; import type { Socket } from "net"; import type * as url from "url"; import type * as Koa from "koa"; declare module "koa" { interface BaseContext { $context: Sealious.Context; $app: Sealious.App; $body: Record; $cache: (key: string, getter: (ctx: Koa.Context) => Promise) => Promise; } } type Query = Record; declare module "koa" { interface ContextDelegatedRequest { header: any; headers: any; url: string; origin: string; href: string; method: string; path: string; query: Query; querystring: string; search: string; host: string; hostname: string; URL: url.URL; fresh: boolean; stale: boolean; idempotent: boolean; socket: Socket; protocol: string; secure: boolean; ip: string; ips: string[]; subdomains: string[]; accepts(): string[] | boolean; accepts(...types: string[]): string | boolean; accepts(types: string[]): string | boolean; acceptsEncodings(): string[] | boolean; acceptsEncodings(...encodings: string[]): string | boolean; acceptsEncodings(encodings: string[]): string | boolean; acceptsCharsets(): string[] | boolean; acceptsCharsets(...charsets: string[]): string | boolean; acceptsCharsets(charsets: string[]): string | boolean; acceptsLanguages(): string[] | boolean; acceptsLanguages(...langs: string[]): string | boolean; acceptsLanguages(langs: string[]): string | boolean; get(field: string): string; } } export {};