import { ServerRequest } from 'microrouter'; import { Sharp } from 'sharp'; import { Context } from '..'; import { RawOperation } from '../utils/operationParser'; import { CacheControlStrategy } from '../utils/sender'; export interface Operation { name: string; op: (opt: { image: Sharp; otherOps: Array; req: ServerRequest; }) => Promise; params: Array; cacheStrategy?: CacheControlStrategy; } export type Normalizer = (rawOp: O) => Operation[]; declare const normalizer: (context: Context) => { normalize: (rawOperations: Array) => Operation[]; }; export default normalizer;