mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-10 00:33:10 +00:00
11 lines
633 B
TypeScript
11 lines
633 B
TypeScript
export type ToastFunction = (props: {
|
|
title: string;
|
|
description: string;
|
|
variant?: 'default' | 'destructive';
|
|
}) => void;
|
|
export declare const refreshData: (isNetworkConnected: boolean, toast: ToastFunction, updateStateFromCache: () => void, setError: (error: string | null) => void) => Promise<void>;
|
|
export declare const initializeNetwork: (toast: ToastFunction, setError: (error: string | null) => void) => Promise<void>;
|
|
export declare const monitorNetworkHealth: (setIsNetworkConnected: (isConnected: boolean) => void, toast: ToastFunction) => {
|
|
unsubscribe: () => void;
|
|
};
|
|
//# sourceMappingURL=network.d.ts.map
|