/** * Semantic exit codes for pi-extension-toolkit operations. * Allows scripts and agents to programmatically determine failure reasons. */ export declare const ExitCode: { /** Success */ readonly OK: 0; /** General/unknown error */ readonly ERROR: 1; /** Invalid command-line arguments or usage */ readonly INVALID_ARGS: 2; /** Target not found (ENOENT) */ readonly NOT_FOUND: 3; /** Permission denied (EACCES) */ readonly PERMISSION_DENIED: 4; /** File/directory already exists (EEXIST) - use force:true to override */ readonly ALREADY_EXISTS: 5; /** Git/submodule operation failed */ readonly GIT_ERROR: 6; /** Network/fetch operation failed */ readonly NETWORK_ERROR: 7; /** Validation failed (schema, input, config) */ readonly VALIDATION_ERROR: 8; /** Cancelled by user (SIGINT) */ readonly CANCELLED: 130; }; export type ExitCode = (typeof ExitCode)[keyof typeof ExitCode]; /** * Maps Node.js errno to semantic exit code. */ export declare function mapErrnoToExitCode(errno: string | undefined): ExitCode;