/**
 * Option tables for the kill-family tools, per platform (DESIGN-12096 v2 §3' R2 with amendment A3). Every option a
 * table does not list makes the invocation UNKNOWN (R5): guessing whether it takes a value could hide a target.
 */
/**
 * `forward`: passed to the dry-run `pgrep`. `drop`: changes nothing about who is selected (output, prompts, the
 * signal). `skip`: output shaping that `pgrep` must not see. `allow`: the call sends nothing (help, list, a dry run).
 * `unknown`: no `pgrep` equivalent, so the targets cannot be resolved.
 */
export type OptionAction = "forward" | "drop" | "skip" | "allow" | "unknown";
export interface OptionSpec {
    readonly takesValue: boolean;
    readonly action: OptionAction;
    /** The short option `pgrep` takes for it (long options are forwarded as their short form). */
    readonly short?: string;
    /** Exact-name match (`-x`, psmisc `-e`). */
    readonly exact?: boolean;
    /** The pattern is a regular expression, not an exact name (killall `-r`, `-m`). */
    readonly regex?: boolean;
    /** Matches whole process groups (psmisc `killall -g`). */
    readonly groups?: boolean;
    /** Includes the caller's ancestors (BSD `-a`). */
    readonly ancestors?: boolean;
    /** Excludes the caller's ancestors (procps `-A`). */
    readonly ignoreAncestors?: boolean;
    /** Sets the signal (`--signal X`, psmisc `-s X`). */
    readonly signal?: boolean;
    /** A selector of its own (a pattern-less `pkill -u x` still selects). */
    readonly selector?: boolean;
    /** Its value may be the caller-relative `0` (`-g 0`, `-s 0`). */
    readonly callerRelative?: "pgid" | "sid";
    readonly ignoreCase?: boolean;
}
export type OptionTable = ReadonlyMap<string, OptionSpec>;
export type SelectingTool = "pkill" | "pgrep" | "killall";
export declare function optionTable(tool: SelectingTool, platform: string): OptionTable;
/** The signal a word names (`9`, `KILL`, `SIGKILL`, `rtmin+3`), or `undefined` when it names none. */
export declare function signalNumberOrName(text: string): {
    readonly zero: boolean;
} | undefined;
//# sourceMappingURL=options.d.ts.map