export type ArrayWrapped = T extends any[] ? T : [T]; /** * If the provided value is not an array, * wrap it in an array. If the value is undefined * will return an empty array. */ export declare function arrayWrapped(item: T): T extends undefined ? never[] : ArrayWrapped; export declare class PathyError extends Error { tries?: number; constructor(message: string, cause?: any, asserter?: Function); } export declare function assert(claim: any, message: string, cause?: any): asserts claim; /** * A decorator for async methods that ensures that calls to * the method are resolved in order, and that only one call * is active at a time. */ export declare function Sequential(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; export declare const sequential: (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; //# sourceMappingURL=util.d.ts.map