import { CommandParser } from '../client/parser'; import { NumberReply } from '../RESP/types'; export declare const CLIENT_KILL_FILTERS: { readonly ADDRESS: "ADDR"; readonly LOCAL_ADDRESS: "LADDR"; readonly ID: "ID"; readonly TYPE: "TYPE"; readonly USER: "USER"; readonly SKIP_ME: "SKIPME"; readonly MAXAGE: "MAXAGE"; }; type CLIENT_KILL_FILTERS = typeof CLIENT_KILL_FILTERS; export interface ClientKillFilterCommon { filter: T; } export interface ClientKillAddress extends ClientKillFilterCommon { address: `${string}:${number}`; } export interface ClientKillLocalAddress extends ClientKillFilterCommon { localAddress: `${string}:${number}`; } export interface ClientKillId extends ClientKillFilterCommon { id: number | `${number}`; } export interface ClientKillType extends ClientKillFilterCommon { type: 'normal' | 'master' | 'replica' | 'pubsub'; } export interface ClientKillUser extends ClientKillFilterCommon { username: string; } export type ClientKillSkipMe = CLIENT_KILL_FILTERS['SKIP_ME'] | (ClientKillFilterCommon & { skipMe: boolean; }); export interface ClientKillMaxAge extends ClientKillFilterCommon { maxAge: number; } export type ClientKillFilter = ClientKillAddress | ClientKillLocalAddress | ClientKillId | ClientKillType | ClientKillUser | ClientKillSkipMe | ClientKillMaxAge; declare const _default: { readonly NOT_KEYED_COMMAND: true; readonly IS_READ_ONLY: true; /** * Closes client connections matching the specified filters * @param parser - The Redis command parser * @param filters - One or more filters to match client connections to kill */ readonly parseCommand: (this: void, parser: CommandParser, filters: ClientKillFilter | Array) => void; readonly transformReply: () => NumberReply; }; export default _default; //# sourceMappingURL=CLIENT_KILL.d.ts.map