import { createState, GemElement } from '@mantou/gem/lib/element'; import './loading'; interface WaitOptions { minDelay?: number; } export declare function waitLoading(promise: Promise | T, options?: WaitOptions & Partial): Promise; export declare const closeLoading: () => Promise; export declare const changeLoading: (newState: Partial) => void; type Position = 'start' | 'center' | 'end'; type State = { text?: string; transparent?: boolean; color?: string; position?: Position | `${Position} ${Position}`; }; export declare class DuoyunWaitElement extends GemElement { #private; static instance?: DuoyunWaitElement; static wait: typeof waitLoading; static close: () => Promise; static change: (newState: Partial) => void; modal: boolean; constructor(initState?: State); render: () => import("@mantou/gem/lib/lit-html").TemplateResult; state: ReturnType>; removed: Promise; } export {}; //# sourceMappingURL=wait.d.ts.map