export declare class NftNotRootError extends Error { constructor(); } export declare class NftCommandError extends Error { readonly command: string; readonly stderr: string; constructor(command: string, stderr: string); } /** * Low-level executor for nft CLI commands. */ export declare class NftExecutor { private dryRun; constructor(options?: { dryRun?: boolean; }); /** Check if running as root (euid 0). */ isRoot(): boolean; /** * Execute a single nft command. * The command may or may not start with "nft " — the prefix is stripped if present. * Returns stdout on success. */ exec(command: string): Promise; /** * Execute multiple nft commands sequentially. * By default stops on first failure. Set continueOnError to keep going. */ execBatch(commands: string[], options?: { continueOnError?: boolean; }): Promise; }