+import { OutgoingHttpHeaders } from 'http'
import { RegisterServerAuthExternalOptions } from '@server/types'
import {
MAbuseMessage,
import { MVideoImportDefault } from '@server/types/models/video/video-import'
import { MVideoPlaylistElement, MVideoPlaylistElementVideoUrlPlaylistPrivacy } from '@server/types/models/video/video-playlist-element'
import { MAccountVideoRateAccountVideo } from '@server/types/models/video/video-rate'
-import { HttpMethod } from '@shared/core-utils/miscs/http-methods'
-import { PeerTubeProblemDocumentData, ServerErrorCode, VideoCreate } from '@shared/models'
+import { HttpMethod, PeerTubeProblemDocumentData, ServerErrorCode, VideoCreate } from '@shared/models'
import { File as UploadXFile, Metadata } from '@uploadx/core'
import { RegisteredPlugin } from '../../lib/plugins/plugin-manager'
import {
MVideoShareActor,
MVideoThumbnail
} from '../../types/models'
+import { Writable } from 'stream'
declare module 'express' {
export interface Request {
}) => void
locals: {
+ apicache: {
+ content: string | Buffer
+ write: Writable['write']
+ writeHead: Response['writeHead']
+ end: Response['end']
+ cacheable: boolean
+ headers: OutgoingHttpHeaders
+ }
+
docUrl?: string
videoAPI?: MVideoFormattableDetails