@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
17 lines • 977 B
TypeScript
import type { TranslatedString } from "../../Engine.js";
import { UiComponent, type UiComponentOptions } from "./UiComponent.js";
export type ExplainerListItemOptions<TKittenGameLiteral extends `$${string}`> = UiComponentOptions & ThisType<ExplainerListItem<TKittenGameLiteral>>;
export declare class ExplainerListItem<TKittenGameLiteral extends `$${string}`> extends UiComponent {
readonly options: ExplainerListItemOptions<TKittenGameLiteral>;
/**
* Construct an element to explain an area of the UI.
* This is purely for cosmetic/informational value in the UI.
*
* @param host - A reference to the host.
* @param key - The i18n key for the text to appear on the element.
* @param options - Options for this explainer.
*/
constructor(parent: UiComponent, key: TranslatedString<TKittenGameLiteral>, options?: ExplainerListItemOptions<TKittenGameLiteral>);
toString(): string;
}
//# sourceMappingURL=ExplainerListItem.d.ts.map