import { z } from 'zod'; import { promises } from 'fs'; import childProcess from 'child_process'; import lodash from 'lodash'; /** * A class to match files against gitignore rules * @param rules - A list of gitignore rules */ declare class GitignoreMatcher { rules: readonly string[]; constructor(rules: readonly string[]); /** Filters out ignored files from a list of file paths */ filter(filePaths: readonly string[]): string[]; /** Returns whether a filePath is matched (not ignored) */ matches(filePath: string): boolean; /** Creates a copy of this matcher with additional gitignore rules */ extend(rules: readonly string[]): GitignoreMatcher; } /** All possible rules to be checked */ declare const RULES: { DS_STORE: "DS_STORE"; UPPERCASE_EXTENSION: "UPPERCASE_EXTENSION"; IGNORED_COMMITTED_FILE: "IGNORED_COMMITTED_FILE"; INVALID_BYTE: "INVALID_BYTE"; UNEXPECTED_CONTINUATION_BYTE: "UNEXPECTED_CONTINUATION_BYTE"; MISSING_CONTINUATION_BYTE: "MISSING_CONTINUATION_BYTE"; OVERLONG_BYTE_SEQUENCE: "OVERLONG_BYTE_SEQUENCE"; INVALID_CODE_POINT: "INVALID_CODE_POINT"; MALFORMED_ENCODING: "MALFORMED_ENCODING"; UNEXPECTED_ENCODING: "UNEXPECTED_ENCODING"; CARRIAGE_RETURN: "CARRIAGE_RETURN"; TAB: "TAB"; TRAILING_WHITESPACE: "TRAILING_WHITESPACE"; MULTIPLE_FINAL_NEWLINES: "MULTIPLE_FINAL_NEWLINES"; NO_FINAL_NEWLINE: "NO_FINAL_NEWLINE"; UNEXPECTED_CHARACTER: "UNEXPECTED_CHARACTER"; }; type RuleName = keyof typeof RULES; interface SomeFailure { type: RuleName; } interface DsStoreFailure extends SomeFailure { type: typeof RULES.DS_STORE; } interface UppercaseExtensionFailure extends SomeFailure { type: typeof RULES.UPPERCASE_EXTENSION; } interface IgnoredCommittedFileFailure extends SomeFailure { type: typeof RULES.IGNORED_COMMITTED_FILE; } interface InvalidByteFailure extends SomeFailure { type: typeof RULES.INVALID_BYTE; value: string; line: number; } interface UnexpectedContinuationByteFailure extends SomeFailure { type: typeof RULES.UNEXPECTED_CONTINUATION_BYTE; value: string; line: number; } interface MissingContinuationByteFailure extends SomeFailure { type: typeof RULES.MISSING_CONTINUATION_BYTE; expectedBytes: number; value: string; line: number; } interface OverlongByteSequenceFailure extends SomeFailure { type: typeof RULES.OVERLONG_BYTE_SEQUENCE; value: string; line: number; } interface InvalidCodePointFailure extends SomeFailure { type: typeof RULES.INVALID_CODE_POINT; value: string; line: number; } interface MalformedEncodingFailure extends SomeFailure { type: typeof RULES.MALFORMED_ENCODING; guessedEncoding: string | undefined; confidence: number; } interface UnexpectedEncodingFailure extends SomeFailure { type: typeof RULES.UNEXPECTED_ENCODING; encoding: string; } interface CarriageReturnFailure extends SomeFailure { type: typeof RULES.CARRIAGE_RETURN; line: number; } interface TabFailure extends SomeFailure { type: typeof RULES.TAB; lines: number[]; } interface TrailingWhitespaceFailure extends SomeFailure { type: typeof RULES.TRAILING_WHITESPACE; lines: number[]; } interface MultipleFinalNewlinesFailure extends SomeFailure { type: typeof RULES.MULTIPLE_FINAL_NEWLINES; line: number; } interface NoFinalNewlineFailure extends SomeFailure { type: typeof RULES.NO_FINAL_NEWLINE; line: number; } interface UnexpectedCharacterFailure extends SomeFailure { type: typeof RULES.UNEXPECTED_CHARACTER; value: string; lines: number[]; } /** Union of all possible failures */ type Failure = (DsStoreFailure | UppercaseExtensionFailure | IgnoredCommittedFileFailure | InvalidByteFailure | UnexpectedContinuationByteFailure | MissingContinuationByteFailure | OverlongByteSequenceFailure | InvalidCodePointFailure | MalformedEncodingFailure | UnexpectedEncodingFailure | CarriageReturnFailure | TabFailure | TrailingWhitespaceFailure | MultipleFinalNewlinesFailure | NoFinalNewlineFailure | UnexpectedCharacterFailure); /** Expands a named type to show its contents recursively */ type ExpandRecursive = (Type extends (...args: infer Args) => infer Return ? (...args: ExpandRecursive) => ExpandRecursive : Type extends object ? (Type extends infer O ? { [K in keyof O]: ExpandRecursive; } : never) : Type); /** Wrapper function for process.cwd, makes dependency injection simpler */ declare function currentDirectory(deps?: { process: NodeJS.Process; }): string; /** * Wrapper function for import, makes dependency injection simpler. * This function is excluded from coverage because mocking `import` is painful */ declare function importModule(path: string): Promise; /** Checks if a file is readable */ declare function fileReadable(path: string, deps?: { access: typeof promises.access; }): Promise; /** Returns the result of a `git ls-files` command with the full-name option */ declare function gitListFiles(directory: string, options: string, deps?: { exec: typeof childProcess.exec.__promisify__; }): Promise; /** Get all committed files which should be ignored */ declare function getIgnoredCommittedFiles(directory: string, deps?: { gitListFiles: typeof gitListFiles; }): Promise; /** Get all committed & untracked files */ declare function getProjectFiles(directory: string, deps?: { gitListFiles: typeof gitListFiles; }): Promise; /** Returns the Git root directory of a directory */ declare function getProjectDir(directory: string, deps?: { exec: typeof childProcess.exec.__promisify__; }): Promise; /** Returns the contents of a file, returns undefined if it is a directory */ declare function getFileContent(directory: string, file: string, deps?: { readFile: typeof promises.readFile; }): Promise; /** Results for a file, with helper methods */ declare class FileResult { checks: number; failures: Failure[]; constructor(checks?: number, failures?: Failure[]); /** Adds a number of failures into this result */ addFailures(failures: Failure[]): this; /** Merges another result into this one */ mergeWith(fileResult: FileResult): FileResult; } type Results = Record; /** Helper type to extend a ruleset with utility functions */ type ExtendRuleset = Ruleset & { rules: ExtendRules; matcher: GitignoreMatcher; enabledFor: (this: { enabled: boolean; matcher: GitignoreMatcher; }, filePath: string) => boolean; filterFiles: (this: { enabled: boolean; matcher: GitignoreMatcher; }, filePaths: string[]) => string[]; }; /** Helper type to extend a rule with utility functions */ type ExtendRule = Rule & { matcher: GitignoreMatcher; enabledFor: (this: { enabled: boolean; matcher: GitignoreMatcher; }, filePath: string) => boolean; filterFiles: (this: { enabled: boolean; matcher: GitignoreMatcher; }, filePaths: string[]) => string[]; }; /** Helper type to extend a rules object with utility functions */ type ExtendRules = { [Property in keyof Ruleset['rules']]: (Ruleset['rules'][Property] extends AnyRuleset ? ExtendRuleset : ExtendRule); }; declare const Config: z.ZodObject>; }, { rules: z.ZodObject<{ PATH_VALIDATION: z.ZodObject>; }, { rules: z.ZodObject<{ DS_STORE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; UPPERCASE_EXTENSION: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; IGNORED_COMMITTED_FILE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; }, z.UnknownKeysParam, z.ZodTypeAny, { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }, { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }>; }>, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }, { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }>; CONTENT_VALIDATION: z.ZodObject>; }, { rules: z.ZodObject<{ MALFORMED_ENCODING: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; UNEXPECTED_ENCODING: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; CARRIAGE_RETURN: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; TAB: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; TRAILING_WHITESPACE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; MULTIPLE_FINAL_NEWLINES: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; NO_FINAL_NEWLINE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; UNEXPECTED_CHARACTER: z.ZodObject>; rules: z.ZodOptional; }, { allowed: z.ZodReadonly>; }>, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }>; UTF8_VALIDATION: z.ZodObject>; }, { rules: z.ZodObject<{ INVALID_BYTE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; UNEXPECTED_CONTINUATION_BYTE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; MISSING_CONTINUATION_BYTE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; OVERLONG_BYTE_SEQUENCE: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; INVALID_CODE_POINT: z.ZodObject<{ enabled: z.ZodBoolean; exclude: z.ZodReadonly>; rules: z.ZodOptional; }, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }, { enabled: boolean; exclude: readonly string[]; rules?: undefined; }>; }, z.UnknownKeysParam, z.ZodTypeAny, { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }, { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }>; }>, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }, { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }>; }, z.UnknownKeysParam, z.ZodTypeAny, { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }, { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }>; }>, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }, { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }>; }, z.UnknownKeysParam, z.ZodTypeAny, { PATH_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; CONTENT_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }; }, { PATH_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; CONTENT_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }; }>; }>, "strict", z.ZodTypeAny, { enabled: boolean; exclude: readonly string[]; rules: { PATH_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; CONTENT_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }; }; }, { enabled: boolean; exclude: readonly string[]; rules: { PATH_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { DS_STORE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UPPERCASE_EXTENSION: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; IGNORED_COMMITTED_FILE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; CONTENT_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { MALFORMED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_ENCODING: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; CARRIAGE_RETURN: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TAB: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; TRAILING_WHITESPACE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MULTIPLE_FINAL_NEWLINES: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; NO_FINAL_NEWLINE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CHARACTER: { enabled: boolean; exclude: readonly string[]; allowed: readonly string[]; rules?: undefined; }; UTF8_VALIDATION: { enabled: boolean; exclude: readonly string[]; rules: { INVALID_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; UNEXPECTED_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; MISSING_CONTINUATION_BYTE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; OVERLONG_BYTE_SEQUENCE: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; INVALID_CODE_POINT: { enabled: boolean; exclude: readonly string[]; rules?: undefined; }; }; }; }; }; }; }>; type Config = ExpandRecursive>; type PathRuleset = Config['rules']['PATH_VALIDATION']; type ContentRuleset = Config['rules']['CONTENT_VALIDATION']; type Utf8Ruleset = ContentRuleset['rules']['UTF8_VALIDATION']; type AnyRuleset = Config | PathRuleset | ContentRuleset | Utf8Ruleset; type ExtendedConfig = ExtendRuleset; type ExtendedPathConfig = ExtendedConfig['rules']['PATH_VALIDATION']; type ExtendedContentConfig = ExtendedConfig['rules']['CONTENT_VALIDATION']; type ExtendedUtf8Config = ExtendedContentConfig['rules']['UTF8_VALIDATION']; /** This is messy because Zod cannot create a Function type with a readonly argument */ type ExcludeFunction = (defaults: readonly string[]) => readonly string[]; declare const ExcludeFunction: z.ZodType; declare const UserConfig: z.ZodObject<{ enabled: z.ZodOptional>; exclude: z.ZodOptional>, z.ZodType]>>>; rules: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; }, { rules: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; UPPERCASE_EXTENSION: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; IGNORED_COMMITTED_FILE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; }, z.UnknownKeysParam, z.ZodTypeAny, { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; }, { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; }>>; }>, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; }>, z.ZodBoolean]>>; CONTENT_VALIDATION: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; }, { rules: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; UNEXPECTED_ENCODING: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; CARRIAGE_RETURN: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; TAB: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; TRAILING_WHITESPACE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; MULTIPLE_FINAL_NEWLINES: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; NO_FINAL_NEWLINE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; UNEXPECTED_CHARACTER: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, { allowed: z.ZodReadonly>; }>, z.UnknownKeysParam, z.ZodTypeAny, { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; UTF8_VALIDATION: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; }, { rules: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; UNEXPECTED_CONTINUATION_BYTE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; MISSING_CONTINUATION_BYTE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; OVERLONG_BYTE_SEQUENCE: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; INVALID_CODE_POINT: z.ZodOptional; exclude: z.ZodOptional>, z.ZodType]>>; rules: z.ZodOptional>; }, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; }>, z.ZodBoolean]>>; }, z.UnknownKeysParam, z.ZodTypeAny, { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; }, { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; }>>; }>, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; }>, z.ZodBoolean]>>; }, z.UnknownKeysParam, z.ZodTypeAny, { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; }, { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; }>>; }>, z.UnknownKeysParam, z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; }>, z.ZodBoolean]>>; }, z.UnknownKeysParam, z.ZodTypeAny, { PATH_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; CONTENT_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; }, { PATH_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; CONTENT_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; }>>>; }, "strict", z.ZodTypeAny, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { PATH_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; CONTENT_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; }, { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { PATH_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { DS_STORE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UPPERCASE_EXTENSION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; IGNORED_COMMITTED_FILE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; CONTENT_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { MALFORMED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_ENCODING?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; CARRIAGE_RETURN?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TAB?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; TRAILING_WHITESPACE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MULTIPLE_FINAL_NEWLINES?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; NO_FINAL_NEWLINE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CHARACTER?: boolean | { allowed: readonly string[]; enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UTF8_VALIDATION?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: { INVALID_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; UNEXPECTED_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; MISSING_CONTINUATION_BYTE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; OVERLONG_BYTE_SEQUENCE?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; INVALID_CODE_POINT?: boolean | { enabled?: boolean | undefined; exclude?: readonly string[] | ExcludeFunction | undefined; rules?: undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; } | undefined; }>; type UserConfig = ExpandRecursive>; /** Validates a buffer presumed to contain UTF 8 data, returns an array of failures */ declare function validateUtf8(filePath: string, data: Buffer, config: ExtendedUtf8Config): Promise; /** Runs checks on file contents */ declare function checkContent(filePath: string, data: Buffer, config: ExtendedContentConfig): FileResult; /** Runs checks on file paths, returning FileResult of those checks */ declare function checkFilePath(filePath: string, config: ExtendedPathConfig): FileResult; /** Gets the specified or inferred path for the config */ declare function getConfigPath(projectDir: string, userConfigPath?: string, deps?: { fileReadable: typeof fileReadable; currentDirectory: typeof currentDirectory; }): Promise; /** Get full configuration, combining default with user config */ declare function getConfig(projectDir: string, userConfigPath?: string, deps?: { getConfigPath: typeof getConfigPath; importModule: typeof importModule; }): Promise<[Config, string | undefined]>; /** Extends a config to include utility functions */ declare function extendConfig(config: Config): ExtendRuleset; type SectionStatus = keyof typeof SECTION_STATUSES; type Task = (progress: ProgressManager) => Promise; interface Section { name: string; status: SectionStatus; } interface ProgressBar { message: string; succeeded: number; failed: number; total: number; } declare const SECTION_STATUSES: { IN_PROGRESS: "IN_PROGRESS"; SUCCESS: "SUCCESS"; FAILURE: "FAILURE"; }; /** Manages named entries (sections) and their status in a terminal stream */ declare class ProgressManager { interactive: boolean; stream: NodeJS.WriteStream; sections: Section[]; progress?: ProgressBar; redrawProgressThrottled: lodash.DebouncedFuncLeading<() => void>; constructor(stream: NodeJS.WriteStream); /** Manages terminal output for an async task */ static manage(stream: NodeJS.WriteStream, task: Task): Promise; /** Adds an in-progress section to be displayed with an optional progress bar */ addSection(name: string, total?: number): number; /** Redraws a section */ redrawSection(section: Section): void; /** Redraws the progress bar, throttled to the frame interval */ redrawProgressBar(): void; /** Increments the successes or failures of the progress bar by 1 */ incrementProgress(success: boolean): void; /** Updates the progress bar message */ progressBarMessage(message: string): void; /** Marks the last section as succeeded or failed, if not already complete */ sectionResult(success: boolean): void; /** Removes the progress bar */ progressBarDone(): void; /** Marks the last section as failed, if not already complete */ sectionFailed(): void; /** Ends the final section, removes the progress bar */ end(): void; } /** * Files which are excluded from content checks by default * Either because they are binary, or not usually edited as plaintext */ declare const DEFAULT_CONTENT_EXCLUDED: readonly ["package-lock.json", "pnpm-lock.yaml", "yarn.lock", ".DS_Store", "*.sln", "*.wav", "*.mp3", "*.raw", "*.webm", "*.jpg", "*.jpeg", "*.gif", "*.png", "*.bmp", "*.ico", "*.ttf", "*.eot", "*.woff", "*.woff2", "*.deb", "*.bin", "*.exe", "*.pdf", "*.svg", "*.z", "*.cod", "*.fwu", "*.tar", "*.gz", "*.zip", "*.7z", "*.7zip"]; /** Checks for files which are both ignored and committed */ declare function checkIgnoredCommitted(directory: string, progress: ProgressManager, config: ExtendedPathConfig['rules']['IGNORED_COMMITTED_FILE'], deps?: { getIgnoredCommittedFiles: typeof getIgnoredCommittedFiles; }): Promise; /** Lints a project with an optional user directory */ declare function unlinted(progress: ProgressManager, userDirectory?: string, userConfigPath?: string, deps?: { getProjectDir: typeof getProjectDir; getConfig: typeof getConfig; getProjectFiles: typeof getProjectFiles; getIgnoredCommittedFiles: typeof getIgnoredCommittedFiles; getFileContent: typeof getFileContent; validateUtf8: typeof validateUtf8; extendConfig: typeof extendConfig; checkIgnoredCommitted: typeof checkIgnoredCommitted; checkFilePath: typeof checkFilePath; checkContent: typeof checkContent; cwd: () => string; }): Promise; export { Config, DEFAULT_CONTENT_EXCLUDED, UserConfig, checkIgnoredCommitted, unlinted as default };