import { Liff, LiffPlugin } from '@line/liff'; declare global { interface Window { liff?: Liff; } } type LiffConfig = Parameters[0]; type Plugin = LiffPlugin | [LiffPlugin, PluginOption]; interface GetInitializedLiffProps extends LiffConfig { plugins?: Plugin[]; callback?: (liff: Liff) => Promise; } type GetInitializedLiff = (props: GetInitializedLiffProps) => Promise; declare const getInitializedLiff: GetInitializedLiff; export type { GetInitializedLiff, GetInitializedLiffProps }; export { getInitializedLiff };