/**
 * Matching paths against gitignore-style patterns, as used for `.gitignore` rules and configured file globs.
 * @module
 */
import type ignore from 'ignore';
/** The `ignore` factory, required on first use only. */
export declare function loadIgnore(): typeof ignore;
/**
 * Tests paths against `pattern`, ignoring capitalization: `?` and `*` stay within one path segment, `**` spans them.
 * A pattern anchored with a leading `/` has to match from the start, any other matches at any depth
 * (`global.R` matches `pkg/R/global.R`).
 */
export declare function globMatcher(pattern: string): (filePath: string) => boolean;
/**
 * Unlike `.gitignore`, the lines of an `.Rbuildignore` are (Perl-compatible) *regular expressions* rather than
 * globs, matched unanchored and case-insensitively against the path relative to the package root, as `R CMD build` does.
 * Invalid lines are dropped with a warning.
 */
export declare function rbuildignoreMatcher(content: string): (relativePath: string) => boolean;
