type seconds = number; export interface ApiConfig { kwilProvider: string; timeout?: number; logging?: boolean; logger?: (msg: string) => any; /** * @deprecated - Cache is deprecated. */ cache?: seconds; } export interface ClientConfig extends ApiConfig { unconfirmedNonce?: boolean; } export interface KwilConfig extends ClientConfig { chainId: string; autoAuthenticate?: boolean; } /** * @typedef {Object} Config * @property {string} kwilProvider - kwil provider url * @property {string} chainId - chain id * @property {boolean} [autoAuthenticate] - auto authenticate on call requests to Kwil Gateway. Default is true. * @property {boolean} [unconfirmedNonce] - use unconfirmed nonce * @property {number} [timeout] - timeout for requests in milliseconds * @property {boolean} [logging] - enable logging * @property {Function} [logger] - custom logger function * @property {number} [cache] */ export type Config = KwilConfig; export {};