/** * T=0 protocol status word handling * * Handles automatic GET RESPONSE (SW1=61) and Le correction (SW1=6C) * for T=0 protocol smart cards. */ import type { Card, TransmitOptions } from './types'; /** * Build a GET RESPONSE APDU command (00 C0 00 00 Le) * * @param bytesAvailable Number of bytes to retrieve (Le value) * @returns GET RESPONSE command buffer */ export declare function buildGetResponseCommand(bytesAvailable: number): Buffer; /** * Correct the Le value in an APDU command * * @param command Original command buffer * @param newLe Corrected Le value from SW2 * @returns New command buffer with corrected Le */ export declare function correctLeInCommand(command: Buffer, newLe: number): Buffer; /** * Transmit an APDU with optional automatic T=0 status word handling * * @param card The card to transmit to * @param command The APDU command * @param options Transmit options including autoGetResponse * @returns The response data */ export declare function transmitWithAutoResponse(card: Card, command: Buffer | number[], options?: TransmitOptions): Promise; //# sourceMappingURL=t0-handler.d.ts.map