import { Config } from "./Config";
import { Match } from "./match";
import { Policy } from "./Policy";
export type Message = {
    type: "match";
    policyName: string;
    match: Match;
} | {
    type: "processedFile";
    filePath: string;
};
export declare function processFile(filePath: string, cwd: string, config: Config, onMatch: (match: Match, policy: Policy) => void, onDone: (filePath: string) => void): void;
export declare function readyWorker(config: Config, cwd: string, onMatch: (match: Match, policy: Policy) => void, onDone: (filePath: string) => void): {
    processFile(filePath: string): void;
};
export declare function workerProcess(): Promise<void>;
