declare function createControlledPromise(): { promise: Promise; resolve: (value: T) => void; reject: (error: unknown) => void; }; export { createControlledPromise };