import { native, object } from "./core.ts"; import type { Status } from "./types.ts"; /** * Check whether this Mac can read Messages before using history or search. * @param input - An empty object. Run on a Mac execution context with host commands enabled. * @returns macOS version, database readiness, and permission instructions if needed. Does not prompt for Automation or return messages. * @example * import status from 'kody:@tannerlinsley/imessage'; * const readiness = await status({}); */ export default async function status(input: Record = {}): Promise { object(input, []); return native({ action: "status" }); }