import type { Filter } from "./Filters.js"; export declare const COMMAND_ARG_TYPES: readonly ["pubkey", "event", "address", "relay", "number", "bool", "enum", "word", "text"]; export type CommandArgType = (typeof COMMAND_ARG_TYPES)[number]; export type CommandArg = { name: string; type: CommandArgType; required: boolean; label: string; choices: string[]; }; export declare const isCommandArgType: (type: string) => type is CommandArgType; export declare const validateCommandArgs: (args: CommandArg[]) => void; export type CommandScope = { type: "kind"; kind: number; } | { type: "relay"; url: string; } | { type: "author"; pubkey: string; } | { type: "tag"; name: string; value?: string; }; export type CommandScopeTarget = { kind: number; pubkey?: string; tags?: string[][]; url?: string; }; export declare const parseCommandScope: (scope: string) => CommandScope | undefined; export declare const renderCommandScope: (scope: CommandScope) => string; export declare const matchesCommandScopes: (scopes: CommandScope[], target: CommandScopeTarget) => boolean; export declare const commandScopeRelays: (scopes: CommandScope[]) => string[]; export declare const commandScopesToFilter: (scopes: CommandScope[]) => Filter; export type CommandInvocation = { command: string; pubkey?: string; rest: string; }; export declare const parseCommandInvocation: (content: string) => CommandInvocation | undefined; export type CommandArgBinding = { arg: CommandArg; token: string; value?: string; }; export declare const bindCommandArgs: (args: CommandArg[], rest: string) => CommandArgBinding[]; export declare const parseCommandArgs: (args: CommandArg[], rest: string) => Record | undefined; export declare const getActiveCommandArgIndex: (args: CommandArg[], rest: string) => number; export declare const renderCommandInvocation: (command: string, pubkey?: string) => string; //# sourceMappingURL=Command.d.ts.map