///
///
import { PassThrough, type TransformCallback } from 'node:stream';
export declare class Scanner extends PassThrough {
size: number;
type: string;
error: Error | null;
private readonly hash;
private readonly claim?;
private readonly accept?;
private position;
private detected;
private readonly chunks;
constructor(control?: TypeControl);
digest(): string;
_transform(buffer: Buffer, encoding: BufferEncoding, callback: TransformCallback): void;
private readonly process;
private complete;
private verify;
private match;
private interrupt;
}
export interface TypeControl {
claim?: string;
accept?: string;
}