import { AbortablePromise } from 'better-promises'; import { Computed, Signal } from '@telegram-apps/signals'; import { SignalsTuple } from '../signals-registry.js'; export declare function defineNonConcurrentFn AbortablePromise>(fn: Fn, errorMessage: string, options?: { /** * A signal with the promise to use instead of the generated one. */ promise?: Signal>> | undefined>; /** * A signal with the error to use instead of the generated one. */ error?: Signal; }): [ fn: Fn, promise: [ ...SignalsTuple>> | undefined>, isRequesting: Computed ], error: SignalsTuple ];