import { Api } from "@newstackdev/iosdk-newgraph-client-js"; import { Context } from "./overmind/overmind"; import React from "react"; export class CreatorApi extends Api<{ token: string }> {} export type NLView = React.FunctionComponent>; //React.FC>; export type GenericComponent = NLView | React.FC; export type IOView = NLView; type ValueOf = T[keyof T]; export type Action = (context: Context, value: T) => R | Promise; export interface Link { url?: string; text: string; } export type EmbeddableControlNextCommand = (args?: { command: () => void; text: string }) => void; export type EmbeddableControl = { embedded?: boolean; setNext?: EmbeddableControlNextCommand; handleCallBack?: (value: any) => any; setIsErrorSubmit?: React.Dispatch>; isErrorSubmit?: boolean; }; export type Timer = ReturnType; export type EventHandler = (e?: KeyboardEvent | MouseEvent) => void; export type Callback = (e?: T) => void; export type ActiveKey = "0" | "1" | "2" | "3"; export type FirebaseConfig = { apiKey: string; authDomain: string; projectId: string; storageBucket: string; messagingSenderId: string; appId: string; measurementId: string; }; export enum ContentType { video = "video/mp4", text = "text/plain", image = "image/jpeg", } // export interface UserInfo { // status?: string; // token?: string; // user?: UserReadPrivateResponse; // fbUser?: UserCredential; // loading?: boolean; // signOut: () => void; // }