import type { OnLoadArgs, OnLoadResult } from 'esbuild';
/**
 * Options for running a kaitai compiler from the cli.
 */
export interface KaitaiCliOptions {
    compilerPath?: string;
    compilerFlags?: string[];
    compilerTimeout?: number;
    debug?: boolean;
}
/**
 * Compiles a ksy file with the command-line Kaitai Compiler.
 * @param file The file to compile.
 * @param options The compilation options.
 * @returns The results of the compilation.
 */
export declare function compileKaitaiCli(file: OnLoadArgs, options?: KaitaiCliOptions): Promise<OnLoadResult>;
