UNPKG

@dfinity/gix-components

Version:
14 lines (13 loc) 657 B
/// <reference types="svelte" /> import type { BusyState } from "../types/busy"; import { type Readable } from "svelte/store"; export type BusyStoreData = Array<BusyState>; export interface BusyStore extends Readable<BusyStoreData> { startBusy: (params: BusyState) => void; stopBusy: (initiatorToRemove: BusyState["initiator"]) => void; resetForTesting: () => void; } export declare const busyStore: BusyStore; export declare const startBusy: (params: BusyState) => void, stopBusy: (initiatorToRemove: BusyState["initiator"]) => void; export declare const busy: Readable<boolean>; export declare const busyMessage: Readable<string | undefined>;