import type { ReactNode } from 'react'; /** * Re-exported so the panel can be rendered from a snapshot without a Host. * * `UsageSection` fetches its own data, which is right for the settings page and * useless for anything that wants to check the layout against a fixed snapshot — * `tools/verify-built-panel.mjs` renders this one against the stylesheet the * built bundle actually installs. */ export { UsageView, buildHeatmap, heatCellAnchor, heatCellDescription } from './panel.js'; export type { UsageViewProps, HeatGrid, HeatBlock, HeatCell, HeatMode, Translate } from './panel.js'; /** * Locale namespace, and the client plugin's own name. * * The unscoped short name — the npm package is `@etheslay/dsh-token-dashboard`, * but a plugin's identity is not its scope (dsh-pet's client half names itself * `pet`). One string serves both roles so the section registration can pass the * same value for `locale` and for the dictionary namespace. */ export declare const NS = "dsh-token-dashboard"; /** Section id this page is registered under. */ export declare const SECTION_ID = "usage"; /** Sort position: after the built-in model/plugin pages, before "About". */ export declare const SECTION_ORDER = 45; /** The locale surface this plugin touches. */ interface LocaleService { register(namespace: string, dicts: Record>): unknown; bind(namespace: string): (key: string, params?: Record) => string; getLocale?(): { active?: string; }; } /** The slot surface this plugin touches. */ interface SlotsService { inject(slot: string, register: () => unknown): void; register(meta: Record, component: (props: Record) => ReactNode): unknown; } /** The client Cordis context shape this plugin relies on. */ interface UsageClientContext { effect(callback: () => unknown, label?: string): void; locale: LocaleService; slots: SlotsService; } export declare const name = "dsh-token-dashboard"; /** * `slots` is required — without it there is no settings page at all. `locale` * is required too: `ui-settings` already hard-depends on it, and the section * label has to be translated. */ export declare const inject: string[]; /** * Mount the settings page. * @param ctx - The client Cordis context. */ export declare function apply(ctx: UsageClientContext): void;