/**
 * Resolve an npm package's bin entry script (the real .js/.mjs file, NOT the
 * `node_modules/.bin` shim). `binName` selects which bin when a package exposes
 * several; defaults to the package's sole/string bin. Returns an absolute path
 * to the script, or null when the package or its bin can't be resolved.
 */
export declare function findPackageBinScript(pkgName: string, binName: string, start?: string): string | null;
/**
 * Parse an `npx`/`npm exec` command + args into the target package spec, or null
 * when the command isn't an npx/npm-exec invocation. Skips npx flags (`-y`,
 * `--yes`, `-p <pkg>`, `--package <pkg>`, `--`) to find the package positional.
 * The returned `pkg` keeps any leading `@scope/name`; a trailing `@version` is
 * stripped for resolution since the installed copy's version is authoritative.
 */
export declare function parseNpxPackage(command: string, args: readonly string[]): string | null;
export interface ResolvedStdioCommand {
    command: string;
    args: string[];
}
/**
 * Rewrite a stdio `{ command, args }` to a direct `node <binScript>` invocation
 * when it's an `npx`/`npm exec` of a package whose bin script is resolvable from
 * ezcoder's install. Returns the original `{ command, args }` unchanged
 * otherwise (non-npx command, or the package/bin can't be resolved locally).
 */
export declare function resolveStdioCommand(command: string, args?: readonly string[]): ResolvedStdioCommand;
//# sourceMappingURL=resolve-stdio.d.ts.map