import { app } from "./mobile/app.d"; import { portal } from "./mobile/portal.d"; import { space } from "./mobile/space.d"; export namespace mobile {} export type mobile = { app: app; portal: portal; space: space; // 2026/03 updated start /** @see https://cybozu.dev/ja/kintone/docs/js-api/kintone/create-bottomsheet/ */ createBottomSheet: (config: { title?: string; body?: Element; showOkButton?: boolean; okButtonText?: string; showCancelButton?: boolean; cancelButtonText?: string; showCloseButton?: boolean; beforeClose?: ( action: "OK" | "CANCEL" | "CLOSE", ) => boolean | Promise | void; }) => Promise<{ show: () => Promise<"OK" | "CANCEL" | "CLOSE" | "FUNCTION">; close: () => void; }>; /** @see https://cybozu.dev/ja/kintone/docs/js-api/kintone/show-confirm-bottomsheet/ */ showConfirmBottomSheet: (config: { title?: string; body?: string; showOkButton?: boolean; okButtonText?: string; showCancelButton?: boolean; cancelButtonText?: string; showCloseButton?: boolean; }) => Promise<"OK" | "CANCEL" | "CLOSE">; /** * @see https://cybozu.dev/ja/kintone/docs/js-api/kintone/show-notification/ */ showNotification: ( type: "ERROR" | "SUCCESS" | "INFO", message: string, ) => Promise; /** * @see https://cybozu.dev/ja/kintone/docs/js-api/kintone/show-loading/ */ showLoading: (state: "VISIBLE" | "HIDDEN") => Promise; // 2026/03 updated end };