export declare const REPOSITORY_PACKAGE_TRANSFER_LIMITS: Readonly<{ maximumFiles: 512; maximumFileBytes: 262144; maximumTotalBytes: 4194304; chunkBytes: 65536; maximumChunks: 1024; maximumIndexBytes: 1048576; }>; export declare const REPOSITORY_PACKAGE_TRANSFER_V2_LIMITS: Readonly<{ maximumFiles: 516; maximumTotalBytes: 5242880; maximumFileBytes: 262144; chunkBytes: 65536; maximumChunks: 1024; maximumIndexBytes: 1048576; }>; interface Scope { organizationId: string; repositoryAgentId: string; releaseId: string; gitCommit: string; } export interface RepositoryTransferScopeV2 extends Scope { repositoryBindingId: string; generation: number; } export interface RepositoryTransferFile { path: string; contentBase64: string; sha256: string; sizeBytes: number; } export interface RepositoryTransferIndex extends Scope { schema: 'dharma.repository-package-transfer/v1'; totalBytes: number; files: Array<{ path: string; sha256: string; sizeBytes: number; chunkHashes: string[]; }>; } export interface RepositoryTransferIndexV2 extends RepositoryTransferScopeV2 { schema: 'dharma.repository-package-transfer/v2'; totalBytes: number; files: RepositoryTransferIndex['files']; } export interface RepositoryTransferChunk { schema: 'dharma.repository-package-chunk/v1'; indexHash: string; fileIndex: number; chunkIndex: number; contentBase64: string; } export interface RepositoryTransferChunkV2 extends Omit { schema: 'dharma.repository-package-chunk/v2'; } export declare function planRepositoryPackageTransfer(input: Scope & { files: RepositoryTransferFile[]; }): { index: RepositoryTransferIndex; indexHash: string; chunks: RepositoryTransferChunk[]; }; export declare function planRepositoryPackageTransferV2(input: RepositoryTransferScopeV2 & { files: RepositoryTransferFile[]; }): { index: RepositoryTransferIndexV2; indexHash: string; chunks: RepositoryTransferChunkV2[]; }; export declare function createRepositoryPackageTransferReceiver(value: unknown, expected: Scope & { expectedIndexHash: string; }): { accept(value: unknown): void; finish(): RepositoryTransferFile[] | null; }; export declare function createRepositoryPackageTransferReceiverV2(value: unknown, expected: RepositoryTransferScopeV2 & { expectedIndexHash: string; }): { accept(value: unknown): void; finish(): RepositoryTransferFile[] | null; }; export {}; //# sourceMappingURL=repositoryPackageTransfer.d.ts.map