UNPKG

videokitten

Version:

A cross-platform Node.js library for recording videos from iOS simulators and Android devices/emulators

63 lines 1.97 kB
/** * Base error class for Videokitten errors */ export declare class VideokittenError extends Error { constructor(message: string, options?: { cause?: Error; }); } /** * Error thrown when a device is not found */ export declare class VideokittenDeviceNotFoundError extends VideokittenError { constructor(deviceId: string, cause?: Error); } /** * Error thrown when xcrun tool is not found or not executable */ export declare class VideokittenXcrunNotFoundError extends VideokittenError { constructor(xcrunPath: string, cause?: Error); } /** * Error thrown when adb tool is not found or not executable */ export declare class VideokittenAdbNotFoundError extends VideokittenError { constructor(adbPath: string, cause?: Error); } /** * Error thrown when scrcpy tool is not found or not executable */ export declare class VideokittenScrcpyNotFoundError extends VideokittenError { constructor(scrcpyPath: string, cause?: Error); } /** * Error thrown when iOS simulator is not available */ export declare class VideokittenIOSSimulatorError extends VideokittenError { constructor(deviceId: string, cause?: Error); } /** * Error thrown when Android device/emulator is not available */ export declare class VideokittenAndroidDeviceError extends VideokittenError { constructor(deviceId: string, cause?: Error); } /** * Error thrown when video file cannot be written */ export declare class VideokittenFileWriteError extends VideokittenError { constructor(outputPath: string, cause?: Error); } /** * Error thrown when operation is aborted */ export declare class VideokittenOperationAbortedError extends VideokittenError { constructor(operation?: string); } /** * Error thrown when video recording command fails with unknown error */ export declare class VideokittenRecordingFailedError extends VideokittenError { constructor(platform: 'ios' | 'android', cause?: Error); } //# sourceMappingURL=errors.d.ts.map