import { DownloadFileParams } from '../sdk'; import { BotApiVersion, Merge, SchemaBase, SinceLatest, SinceUntil } from '../types'; import { onActivated, onContactRequested, onDeactivated, onFileDownloadRequested, onInvoiceClosed, onShareMessageFailed, onShareMessageSent, onWriteAccessRequested } from '../events'; type v60 = ReturnType; type v61 = ReturnType; type v62 = ReturnType; type v67 = ReturnType; type v69 = ReturnType; type v78 = ReturnType; type v80 = ReturnType; type v91 = ReturnType; type AllFeatures = v61 & v62 & v67 & v69 & v78 & v80 & v91; export type Schema = { '6.0': SchemaBase; '6.1': Merge; '6.2': Merge; '6.7': Merge; '6.9': Merge; '7.8': Merge; '8.0': Merge; '9.1': Merge; }; export type MiniApp = SinceUntil | SinceUntil | SinceUntil | SinceUntil | SinceUntil | SinceUntil | SinceUntil | SinceLatest; declare function useMiniApp60(): { initData: string; initDataUnsafe: import('../sdk').WebAppInitData; platform: string; sendData: (data: string) => void; openLink: (url: string, options?: { try_instant_view: boolean; }) => void; openTelegramLink: (url: string) => void; ready: () => void; close: () => void; isClosingConfirmationEnabled: Readonly>; isActive: Readonly>; isReady: Readonly>; isPlatform: typeof isPlatform; }; declare function useMiniApp61(): { openInvoice: { (url: string): Promise<"cancelled" | "paid" | "failed" | "pending">; (url: string, callback?: ((status: "cancelled" | "paid" | "failed" | "pending") => void) | undefined): void; }; onInvoiceClose: typeof onInvoiceClosed; }; declare function useMiniApp62(): { isClosingConfirmationEnabled: import('vue').WritableComputedRef; }; declare function useMiniApp67(): { switchInlineQuery: (query: string, choose_chat_types?: string[]) => void; }; declare function useMiniApp69(): { requestContact: { (): Promise; (callback?: ((granted: boolean) => void) | undefined): void; }; requestWriteAccess: { (): Promise; (callback?: ((granted: boolean) => void) | undefined): void; }; onContactRequest: typeof onContactRequested; onWriteAccessRequest: typeof onWriteAccessRequested; }; declare function useMiniApp78(): { shareToStory: (media_url: string, params?: import('../sdk').StoryShareParams) => void; }; declare function useMiniApp80(): { shareMessage: { (msg_id: string): Promise; (msg_id: string, callback?: ((success: boolean) => void) | undefined): void; }; downloadFile: { (params: DownloadFileParams): Promise; (params: DownloadFileParams, callback?: ((success: boolean) => void) | undefined): void; }; onActive: typeof onActivated; onDeactivate: typeof onDeactivated; onDeactive: typeof onDeactivated; onShareMessageSent: typeof onShareMessageSent; onShareMessageFail: typeof onShareMessageFailed; onFileDownloadRequest: typeof onFileDownloadRequested; }; declare function useMiniApp91(): { hideKeyboard: () => void; }; export declare function useMiniApp(baseVersion: Version): import('../types').VersionedReturnType; export declare function isVersionAtLeast(version: BotApiVersion): boolean; declare function isPlatform(name: (string & Record) | 'unknown' | 'android' | 'android_x' | 'ios' | 'macos' | 'tdesktop' | 'weba' | 'webk' | 'web' | 'unigram'): boolean; export {};