UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

13 lines (12 loc) 594 B
import type { ProgressFunc } from "../../dialog.ts"; export declare function alertInBrowser(message: string): Promise<void>; export declare function confirmInBrowser(message: string): Promise<boolean>; export declare function promptInBrowser(message: string, options: { type: "text" | "password"; defaultValue?: string | undefined; }): Promise<string | null>; export declare function progressInBrowser<T>(message: string, fn: ProgressFunc<T>, options: { signal: AbortSignal; abort?: (() => void) | undefined; listenForAbort?: (() => Promise<T>) | undefined; }): Promise<T>;