import { Computed } from '@telegram-apps/signals'; import { AbortablePromise } from 'better-promises'; import { SignalsTuple } from '../signals-registry.js'; /** * Creates a mount function for a component. * @param component - the component name * @param mount - function mounting the component * @param onMounted - function that will be called whenever mount was completed. */ export declare function defineMountFn AbortablePromise>(component: string, mount: Fn, onMounted: (result: Awaited>) => void): [ fn: (...args: Parameters) => AbortablePromise, promise: [ ...SignalsTuple>> | undefined>, isRequesting: Computed ], error: SignalsTuple, isMounted: SignalsTuple ];