import { Context } from 'koa'; import { z } from 'zod'; import { MuxAsset } from '../content-types/mux-asset/types'; /** The mux-asset named by `:asset`, or `null` once a 404 has been sent. */ export declare function findMuxAsset(ctx: Context): Promise; /** A parsed body, or `undefined` once `parseRequest` has answered 400. */ export declare function parseBody(ctx: Context, schema: S): z.infer | undefined; /** Answers a `RobotsRequestError` with its status and `{ error }` body. Anything else propagates. */ export declare const withRobotsErrors: (handler: (ctx: Context) => Promise) => (ctx: Context) => Promise; declare const _default: { /** * The Mux videos an entry links to, with their newest summary (Summarize or Analyze structure), for * the Content Manager's summary panel. Needs Content Manager read access to the entry, not the plugin's permissions. `status` is * the version the panel shows: `draft` (the default) or `published`. */ entryVideos: (ctx: Context) => Promise; /** Polled while something runs, so it never calls Mux. */ listJobs: (ctx: Context) => Promise; sync: (ctx: Context) => Promise; createJob: (ctx: Context) => Promise; runDirective: (ctx: Context) => Promise; cancelJob: (ctx: Context) => Promise; /** `?load=1` reads a finished job's outputs and units from Mux when they aren't stored. */ findJob: (ctx: Context) => Promise; dismissPending: (ctx: Context) => Promise; /** When Mux can't be read, the configured ids still come back with the reason: uploads attach them as they are. */ listDirectives: (ctx: Context) => Promise; }; export default _default;