type PresentAPI = {
goTo: (x: number) => void,
goForward: () => void,
goBack: () => void,
isThread: (id: number) => boolean,
isVisible: (id: number) => boolean,
getVisibleState: (id: number) => number | null,
useTransition:
(
id: number,
enter: ParsedEffect,
exit: ParsedEffect,
initial?: number,
) => number,
}
packages / present / src / providers / present-provider.ts