export interface SourceLimits { entries: number; compressed: number; expanded: number; /** Regular files only; directories count toward `entries`. */ files?: number; } /** * Decides one path during collection: 'include', 'skip' (reported back to * the caller), or throws to refuse the whole source. Defaults to the * source-checkout rule (excludedSourcePath, silent). */ export type SourceFilter = (name: string, filename: string) => 'include' | 'skip'; export declare const SOURCE_LIMITS: SourceLimits; export interface PackagedSource { filename: string; sha256: string; size_bytes: number; expanded_bytes: number; file_count: number; /** Paths a custom SourceFilter skipped; empty for the default filter. */ skipped: string[]; cleanup(): Promise; } /** Exclude dependencies and credential-bearing paths at every depth. */ export declare function excludedSourcePath(name: string): boolean; /** Reject traversal and ambiguous archive paths rather than silently rewriting names. */ export declare function validateSourcePath(name: string): void; /** Stream source into a private bounded ZIP snapshot; never run shell archive tools. */ export declare function packageLocalSource(source: string, limits?: SourceLimits, filter?: SourceFilter): Promise; //# sourceMappingURL=local-source.d.ts.map