#!/usr/bin/env node type FlagValue = string | boolean; export interface ParsedStandaloneCliArgs { command: string; positionals: string[]; flags: Map; } export interface StandaloneCliIo { out(text: string): void; error(text: string): void; } export declare function parseStandaloneCliArgs(argv: readonly string[]): ParsedStandaloneCliArgs; export declare function runStandaloneCli(argv?: readonly string[], io?: StandaloneCliIo): Promise; /** * Node preserves an npm `.bin` symlink in argv[1] while resolving import.meta.url * to the package target. Compare real paths so the installed executable does * not silently look like a library import. */ export declare function isStandaloneCliEntrypoint(argvPath?: string | undefined, moduleUrl?: string): boolean; export {};