···11+export interface Archive {
22+ /** Actual CAR file */
33+ file: File;
44+ /** Collections in the CAR file */
55+ entries: CollectionEntry[];
66+}
77+88+export interface CollectionEntry {
99+ /** Collection name, e.g. "app.bsky.feed.post" */
1010+ name: string;
1111+ /** Entries under this collection */
1212+ entries: RecordEntry[];
1313+}
1414+1515+export interface RecordEntry {
1616+ /** Record key, e.g. "3ll3hjomcxka6" */
1717+ key: string;
1818+ /** Record digest, e.g. "bafyreieueqsjugefehodlh4o4idd7fzik3koxno7io7x4qu3q4wofsfjl4" */
1919+ cid: string;
2020+ /** Start position of the record in the CAR file */
2121+ dataStart: number;
2222+ /** End position of the record in the CAR file */
2323+ dataEnd: number;
2424+}
2525+2626+export type View =
2727+ | { type: 'repo' }
2828+ | { type: 'collection'; collection: CollectionEntry }
2929+ | { type: 'record'; collection: CollectionEntry; record: RecordEntry };