/**
 * Error codes that can be returned by the module, and are available on the `code` property of the error.
 *
 * @example
 * ```ts
 *   const handleError = (err: unknown) => {
 *     if (isErrorWithCode(err)) {
 *       switch (err.code) {
 *         case errorCodes.IN_PROGRESS:
 *           ...
 *           break
 *         case errorCodes.UNABLE_TO_OPEN_FILE_TYPE:
 *           ...
 *           break
 *         case errorCodes.OPERATION_CANCELED:
 *           // ignore
 *           break
 *         default:
 *           console.error(err)
 *       }
 *     } else {
 *        console.error(err)
 *     }
 *   }
 * ```
 * */
export declare const errorCodes: Readonly<{
    OPERATION_CANCELED: "OPERATION_CANCELED";
    IN_PROGRESS: "ASYNC_OP_IN_PROGRESS";
    UNABLE_TO_OPEN_FILE_TYPE: "UNABLE_TO_OPEN_FILE_TYPE";
    NULL_PRESENTER: "NULL_PRESENTER";
}>;
type ErrorCodes = (typeof errorCodes)[keyof typeof errorCodes];
export interface NativeModuleError extends Error {
    code: ErrorCodes | (string & {});
}
/**
 * TypeScript helper to check if an object has the `code` property.
 * This is used to avoid `as` casting when you access the `code` property on errors returned by the module.
 */
export declare const isErrorWithCode: (error: any) => error is NativeModuleError;
export {};
//# sourceMappingURL=errors.d.ts.map