import type { IndexCacheStore } from '@struktoai/mirage-core/cache/index/store'; import type { PathSpec } from '@struktoai/mirage-core/types'; import type { SSHAccessor } from '../../accessor/ssh.ts'; /** * Read a file, optionally only a byte range of it. * * SFTP seeks, so a window costs the window rather than the whole file: * `start`/`end` bound the READs the stream issues. `end` is inclusive, * matching node's own `createReadStream`. * * Args: * accessor: SSH accessor. * p: the path to read. * _index: unused; SFTP resolves the path itself. * options: `{offset, size}`, the byte window, or absent for the whole file. */ export declare function read(accessor: SSHAccessor, p: PathSpec, _index?: IndexCacheStore, options?: { offset?: number; size?: number; }): Promise; //# sourceMappingURL=read.d.ts.map