import { type WithAliases } from './dealias.js';
import type { ListOptions, ListOptionsSync } from './options.js';
import { type WarnOptions } from './warn.js';
/**
 * Make a filter that passes the entries that `files` lists. An entry
 * passes if `filter` accepts it, and it is in the list or one of its
 * parent directories is. Trailing slashes are ignored.
 *
 * The second item of the result reports each listed path that no
 * entry of the archive matched, as a `TAR_ENTRY_ERROR` warning. An
 * entry that `filter` refuses also matches. Call it when the archive
 * ends.
 */
export declare const filesFilter: <E>(files: string[], filter?: (path: string, entry: E) => boolean) => [filter: (path: string, entry: E) => boolean, report: (opt: WarnOptions) => void];
/**
 * Call `opt.onEntry` with each entry of an archive. If `files` is
 * set, only with the entries that it lists, and the entries in the
 * directories that it lists. A listed path that no entry matches is
 * a warning when the archive ends.
 */
export declare const list: (options: WithAliases<ListOptions>, files?: string[]) => Promise<void>;
/** The sync form of `list`. */
export declare const listSync: (options: WithAliases<ListOptionsSync>, files?: string[]) => void;
//# sourceMappingURL=list.d.ts.map