@skalenetwork/metaport
Version:
SKALE Metaport Widget
41 lines (40 loc) • 1.71 kB
TypeScript
/**
* @license
* SKALE Metaport
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import * as interfaces from '../core/interfaces';
export interface UIState {
theme: interfaces.MetaportTheme;
setTheme: (theme: interfaces.MetaportTheme) => void;
open: boolean;
setOpen: (isOpen: boolean) => void;
}
export declare const useUIStore: import("zustand").UseBoundStore<import("zustand").StoreApi<UIState>>;
export interface CollapseState {
expandedFrom: string | false;
setExpandedFrom: (expanded: string | false) => void;
expandedTo: string | false;
setExpandedTo: (expanded: string | false) => void;
expandedTokens: string | false;
setExpandedTokens: (expanded: string | false) => void;
expandedCP: string | false;
setExpandedCP: (expanded: string | false) => void;
expandedWT: string | false;
setExpandedWT: (expanded: string | false) => void;
expandedTH: boolean;
setExpandedTH: (expanded: boolean) => void;
}
export declare const useCollapseStore: import("zustand").UseBoundStore<import("zustand").StoreApi<CollapseState>>;