import type { SyncRequestContext } from './context.js'; import type { SegmentRecord } from './segment-store.js'; export interface SegmentDownloadRequest { readonly segmentId: string; /** The `X-Syncular-Scopes` header: canonical JSON of the requested map. */ readonly scopesHeader: string; } export interface SegmentDownloadResult { readonly record: SegmentRecord; readonly bytes: Uint8Array; /** Response headers per ยง5.5. */ readonly headers: Record; } export declare function handleSegmentDownload(ctx: SyncRequestContext, request: SegmentDownloadRequest): Promise;