import { FormType } from '@delta-comic/ui'; export interface Config { signUp: (by: Method) => PromiseLike; logIn: (by: Method) => PromiseLike; passSelect: () => PromiseLike<'signUp' | 'logIn' | false>; } export type Method = { form(form: T): Promise<{ [x in keyof T]: FormType.SingleResult; }>; /** * sandbox: "allow-forms allow-modals allow-orientation-lock allow-popups-to-escape-sandbox allow-pointer-lock" */ website(url: string): Window; };