/** * Thenable class that behaves like a Promise and follows it's interface * but is not async internally */ declare class SyncPromise implements PromiseLike { private _state; private _handlers; private _value; constructor(executor: (resolve: (value?: T | PromiseLike | null) => void, reject: (reason?: any) => void) => void); /** JSDoc */ static resolve(value: T | PromiseLike): PromiseLike; /** JSDoc */ static reject(reason?: any): PromiseLike; /** JSDoc */ static all(collection: Array>): PromiseLike; /** JSDoc */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null): PromiseLike; /** JSDoc */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | null): PromiseLike; /** JSDoc */ finally(onfinally?: (() => void) | null): PromiseLike; /** JSDoc */ toString(): string; /** JSDoc */ private readonly _resolve; /** JSDoc */ private readonly _reject; /** JSDoc */ private readonly _setResult; /** JSDoc */ private readonly _attachHandler; /** JSDoc */ private readonly _executeHandlers; } export { SyncPromise }; //# sourceMappingURL=syncpromise.d.ts.map