import { type SelectingTool } from "./options.ts";
import { type Situation } from "./situation.ts";
import type { KillGuardVerdict } from "./types.ts";
/** What one `pkill`/`pgrep`/`killall` call selects, read from its words with the platform's option table. */
export interface Selection {
    readonly tool: SelectingTool;
    readonly patterns: string[];
    /** Arguments for the dry-run `pgrep`, without the patterns. */
    readonly args: string[];
    exact: boolean;
    regex: boolean;
    groups: boolean;
    ancestors: boolean;
    ignoreAncestors: boolean;
    ignoreCase: boolean;
    selectors: number;
    signalZero: boolean;
    sendsNothing: boolean;
    unknownOption?: string;
    /** `-g 0` / `-s 0`, resolved against the caller. */
    readonly callerRelative: {
        readonly option: string;
        readonly kind: "pgid" | "sid";
    }[];
    dynamic?: KillGuardVerdict;
}
export declare function readSelection(situation: Situation, tool: SelectingTool, platform: string): Selection;
//# sourceMappingURL=selection.d.ts.map