import type { CLIDoors } from '@struktoai/mirage-core/commands/cli/types'; import type { CommandFnResult } from '@struktoai/mirage-core/commands/config'; import type { FlagView } from '@struktoai/mirage-core/commands/spec/index'; import type { ByteSource } from '@struktoai/mirage-core/io/types'; import type { EmailConfig } from '../../../../core/email/config.ts'; import { type Source } from './builder.ts'; /** The command's first operand, or a usage error. */ export declare function firstText(texts: readonly string[], label: string): string; /** * Assembles a message, then sends it or writes its MIME to stdout. * * Shared by compose, reply and forward: the three differ only in the * source message they derive headers from. Without --send the raw RFC * 5322 bytes go to stdout, so a composer chain can pick them up. */ export declare function route(config: EmailConfig, fl: FlagView, stdin: ByteSource | null, source: Source | null, doors: CLIDoors | undefined): Promise; //# sourceMappingURL=util.d.ts.map