import { Context, Service } from 'koishi'; import { Readable } from 'node:stream'; declare module 'koishi' { interface Context { ffmpeg: FFmpeg; } } interface RunReturn { file: Promise; buffer: Promise; info: Promise; stream: Readable; } export declare class FFmpegBuilder { executable: string; _inputs: Array; inputOptions: string[]; outputOptions: string[]; constructor(executable: string); input(path: string): FFmpegBuilder; input(buffer: Buffer): FFmpegBuilder; input(stream: Readable): FFmpegBuilder; inputOption(...option: string[]): FFmpegBuilder; outputOption(...option: string[]): FFmpegBuilder; run(type: T, path?: string): RunReturn[T]; } export declare class FFmpeg extends Service { executable: string; constructor(ctx: Context, executable: string); builder(): FFmpegBuilder; } export {};