@ghostry/finity-solidjs
Version:
Finite state management with exhaustiveness and transition enforcement for TypeScript.
19 lines (18 loc) • 803 B
TypeScript
import * as Core from '@ghostry/finity-core';
import type { Config } from './Types.ts';
import $useRender from './useRender.ts';
export type { Config, ExhaustiveSwitch, ExhaustiveSwitchInstance, Getter, InvalidTransitionError, Setter, TransitionalState, TransitionalStates, UsingStrictlyTransitionalState, UsingTransitionalState, } from '@ghostry/finity-core';
/**
* Initialization of the library returns these set of functions.
*/
export interface Initialized extends Core.Initialized {
/**
* A component hook to render JSX based on the current state.
*/
useRender: ReturnType<typeof $useRender>;
}
/**
* Initializes an instance of the usable library API for SolidJS according
* to the provided configuration.
*/
export declare const initialize: (config: Config) => Initialized;