@podium/client
Version:
Client for fetching podium component fragments over HTTP.
33 lines (32 loc) • 1.05 kB
TypeScript
/**
* @typedef {object} PodiumClientStateOptions
* @property {number} [resolveThreshold=10000]
* @property {number} [resolveMax=240000]
*/
export default class PodiumClientState extends EventEmitter<[never]> {
/**
* @param {PodiumClientStateOptions} [options]
*/
constructor({ resolveThreshold, resolveMax, }?: PodiumClientStateOptions);
get status(): "instantiated" | "stable" | "initializing" | "unhealthy" | "unstable";
setInitializingState(): void;
setStableState(): void;
setUnhealthyState(): void;
setUnstableState(): void;
reset(): void;
toJSON(): {
status: "instantiated" | "stable" | "initializing" | "unhealthy" | "unstable";
};
[inspect](): {
status: "instantiated" | "stable" | "initializing" | "unhealthy" | "unstable";
};
get [Symbol.toStringTag](): string;
#private;
}
export type PodiumClientStateOptions = {
resolveThreshold?: number;
resolveMax?: number;
};
import EventEmitter from 'events';
declare const inspect: unique symbol;
export {};