import { FlagView } from '../../spec/flag_view.ts';
import { type ByteSource } from '../../../io/types.ts';
import { LineFacts, type PathSpec } from '../../../types.ts';
import type { CommandFnResult, Context } from '../../config.ts';
/**
 * Convert each operand in order through mirage-rs's iconv, as glibc 2.41
 * converts. An input that cannot be opened is reported and skipped; one that
 * opens and then refuses the read, a directory, ends the run. Mirrors
 * Python's `iconv_generic`.
 */
export declare function iconvGeneric(paths: PathSpec[], ctx: Context, stream: (p: PathSpec) => AsyncIterable<Uint8Array>, write: (p: PathSpec, data: ByteSource) => Promise<void>): Promise<CommandFnResult>;
/**
 * An iconv line writes only the file `-o` names. Mirrors Python's `facts`.
 */
export declare function facts(fl: FlagView, _operands: readonly (string | PathSpec)[]): LineFacts;
//# sourceMappingURL=iconv.d.ts.map