export declare const READ_HELP = "usage: gws-axi gmail read [flags]\nargs[1]:\n Thread ID or Message ID. Both are 16-char hex strings\n and indistinguishable by shape \u2014 we try thread-get\n first, then fall back to message-get \u2192 parent thread.\nflags[6]:\n --message-only Render ONLY the message with the given ID, not its\n parent thread. The ID must be a message-id in this\n mode. For alerts / notifications / one-offs where\n thread context isn't useful.\n --headers Render the message's full RFC 2822 header set (every\n Received hop, Message-ID, In-Reply-To, References,\n DKIM/ARC auth results, \u2026) alongside the parsed body.\n Operates on one message; a thread ID resolves to its\n most recent message.\n --raw Emit the message exactly as Gmail stores it: the\n complete undecoded RFC 2822 source (headers + MIME\n body) as one text block. For piping to a parser or\n saving verbatim. Resolves a thread ID to its latest\n message. Mutually exclusive with --headers.\n --full Bypass the 30,000-char thread-size threshold; render\n every message in full inline (can be large).\n --out Write the full thread to a markdown file instead of\n embedding it inline (implies --full). Accepts a file\n path or directory. With --raw, writes the raw source.\n --account Account override when 2+ are configured.\nexamples:\n gws-axi gmail read 1a2b3c4d5e6f7890\n gws-axi gmail read 1a2b3c4d5e6f7890 --full\n gws-axi gmail read 1a2b3c4d5e6f7890 --out ./thread.md\n gws-axi gmail read 1a2b3c4d5e6f7890 --message-only\n gws-axi gmail read 1a2b3c4d5e6f7890 --headers\n gws-axi gmail read 1a2b3c4d5e6f7890 --raw --out ./message.eml\noutput:\n A `thread{id,subject,message_count,unread,resolved_via_message?}` header,\n followed by a `messages[N]` array. Each message object carries from/to/date\n headers, the decoded body (text/plain preferred; HTML fallback converted via\n turndown), and an attachments[] list with id/filename/mime/size you can pass\n to `gws-axi gmail download`.\n --headers adds a `headers[N]{name,value}` list (full header set, in order,\n untruncated) plus `internal_date`. --raw replaces the parsed view with a\n single `raw:` block of the decoded RFC 2822 source.\nnotes:\n Default behavior renders the entire thread inline when total body size is\n under ~30,000 chars. Longer threads get proportional per-message truncation\n with the usual --full / --out escape hatches. --out writes one complete\n message per section as a markdown conversation, suitable for grep or\n further processing.\n Reading never marks a message as read \u2014 no mutation as a side effect.\n"; interface ParsedFlags { id: string; full: boolean; out: string | undefined; messageOnly: boolean; headers: boolean; raw: boolean; } export declare function parseFlags(args: string[]): ParsedFlags; export declare function gmailReadCommand(account: string, args: string[]): Promise; export {};