UNPKG

@ekko-earth/ekko-js

Version:

A framework-agnostic web SDK for displaying carbon impact.

21 lines (20 loc) 641 B
import { ElementsOptions } from "./ekko-elements"; import { EkkoElements } from "./ekko-elements"; export interface EkkoOptions { /** * The locale to be used for the Ekko instance. * Must be in the format of ISO 639-1 language code, followed by a hyphen, followed by an ISO 3166-1 alpha-2 country code. * Example: en-GB */ locale?: string; } export declare class Ekko { mode: string; options?: EkkoOptions; constructor(mode: string, options?: EkkoOptions); /** * Returns an instance of EkkoElements. */ elements(options: ElementsOptions): EkkoElements; private validateLocale; }