edge-sync-client
Version:
Library for accessing the Edge data-sync system
14 lines (13 loc) • 434 B
TypeScript
import { FetchFunction } from 'serverlet';
import { EdgeServers } from '../types/base-types';
export interface InfoClient {
getEdgeServers: () => Promise<Required<EdgeServers>>;
}
interface InfoClientOptions {
fetch?: FetchFunction;
log?: (message: string) => void;
edgeServers?: EdgeServers;
edgeServersCacheTTL?: number;
}
export declare function makeInfoClient(opts?: InfoClientOptions): InfoClient;
export {};