export interface Throwable { (throwableFn: () => Promise, onSuccess?: (data: ThrowableResult) => Promise, onError?: (error: unknown) => Promise): Promise; } export declare function createThrowable(init: () => Throwable): Throwable;