import { type Logger, type ILogObj } from '../../../lib/logging/index.js';
export interface HeadersParseResult {
    complete: boolean;
    headers?: Buffer;
    remaining?: Buffer;
}
/**
 * Parser for HTTP headers
 */
export declare class HeadersParser {
    private logger;
    constructor(logger: Logger<ILogObj>);
    /**
     * Parse HTTP headers from buffer
     * @param data Buffer containing header data
     * @param existingHeaders Previously accumulated headers
     * @returns Headers parse result
     */
    parse(data: Buffer, existingHeaders?: Buffer): HeadersParseResult;
    /**
     * Extract remaining data after headers
     * @param data Original data buffer
     * @param index Index where headers end
     * @param padding Padding to skip
     * @returns Remaining data
     */
    private extractRemaining;
}
//# sourceMappingURL=HeadersParser.d.ts.map