import { type ByteSource } from '../../../io/types.ts'; import type { PathSpec } from '../../../types.ts'; import type { CommandFnResult, CommandOpts } from '../../config.ts'; import type { FlagValue } from '../../spec/types.ts'; type Stream = (p: PathSpec) => AsyncIterable; export interface WcRow { values: number[]; label: string | null; } export interface WcFlags { lines: boolean; words: boolean; bytes: boolean; chars: boolean; maxLineLength: boolean; total: 'auto' | 'always' | 'only' | 'never'; } export declare function parseFlags(flags: Record): WcFlags | string; export declare function formatWcLines(rows: WcRow[]): string[]; export declare function formatCountRows(rows: WcRow[], totalValues: number[], operandCount: number, total: WcFlags['total']): ByteSource | null; export declare function wcGeneric(paths: PathSpec[], texts: string[], opts: CommandOpts, stream: Stream): Promise; export {}; //# sourceMappingURL=wc.d.ts.map