import * as crypto from 'crypto'; import { type SSHKey, type SSHSignature } from './ssh_agent_client.ts'; /** Read a length-prefixed string (uint32 BE length + bytes) from a buffer. */ declare const readString: (buffer: Buffer, offset: number) => Buffer; /** Write a length-prefixed string into `target` at `offset`, return next offset. */ declare const writeString: (target: Buffer, src: Buffer, offset: number) => number; /** * Write the 5-byte SSH agent frame header (4-byte length + 1-byte tag) * into `request` and return the next write offset (5). * The length field is the total buffer length minus the 4-byte length field itself. */ declare const writeHeader: (request: Buffer, tag: number) => number; /** Convert an SSH public key blob to a Node.js `crypto.KeyObject`. */ declare const parseSSHPublicKey: (key: SSHKey) => crypto.KeyObject; /** Map an SSH signature to the hash algorithm and signature bytes expected by `crypto.verify`. */ declare const parseSSHSignature: (signature: SSHSignature) => { algorithm: string | null; raw: Buffer; }; export { readString, writeString, writeHeader, parseSSHPublicKey, parseSSHSignature };