@dfinity/gix-components
Version:
A UI kit developed by the GIX team
14 lines (13 loc) • 657 B
TypeScript
/// <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>;