import type { FfmpegCommandPrototype } from '../types.js'; /** * Normalise the variadic shape of `inputOptions` / `outputOptions` / * `addOption` / etc. into a flat string[] suitable for ffmpeg argv. * * Three invocation forms (preserved from upstream `fluent-ffmpeg`): * * cmd.inputOption('-ss 00:00:10') // single string with space * cmd.inputOptions('-c:v', 'libx264') // positional varargs * cmd.inputOptions(['-flag1 val1', '-flag2 v2']) // array of flag-value pairs * cmd.inputOptions(['-headers', 'Cookie: a=b']) // array of pre-split tokens * * The legacy split-on-space behaviour for array entries was over-eager: * `['-headers', 'Cookie: a=b']` had its second item split into * `['Cookie:', 'a=b']`, mangling the header value (upstream issue * #1151, open since 2021). The fix below splits an entry only when * its first part starts with `-` — distinguishing a flag-value pair * (`'-me_method umh'`, valid preset shape) from a value-with-space * (`'Cookie: a=b'`, raw user data). */ export declare function flattenOptions(args: (string | string[])[]): string[]; declare function applyCustomOptions(proto: FfmpegCommandPrototype): void; export default applyCustomOptions; //# sourceMappingURL=custom.d.ts.map