import { PicGo } from 'picgo'; import { IImgInfo } from 'picgo/dist/types'; export interface Config { ossType: number; expireSeconds: number; sign: boolean; } export interface ListItem { type: string; name: string; visible: boolean; } export interface Processor { key: string; name: string; process: (ctx: PicGo, img: IImgInfo, expireSeconds: number, sign: boolean) => string; } export declare class AliyunProcessor implements Processor { key: string; name: string; process(ctx: PicGo, img: IImgInfo, expireSeconds: number): string; } export declare class TencentProcessor implements Processor { key: string; name: string; process(ctx: PicGo, img: IImgInfo, expireSeconds: number, sign: boolean): string; } export declare class QiniuProcessor implements Processor { key: string; name: string; process(ctx: PicGo, img: IImgInfo, expireSeconds: number): string; } export declare class Processors { values: Processor[]; select(key: string): Processor | undefined; } export declare function getBodyFromImage(img: IImgInfo, ctx: PicGo): Buffer | null; export declare function getCosPutObjectParams(ctx: PicGo, img: IImgInfo, sign: boolean, expireSeconds: number): { Bucket: string; Region: string; Key: string; Sign: boolean; Query: Map; Expires: number; Headers: { 'Content-Disposition': string; }; };