/** * Shared `configure` command implementation for all plugin CLIs. * * `configure` only ever touches the **security** half of a plugin. The * developer-experience half — skills, commands, the local Ory stack, the MCP * server, local activity logging — is installed unconditionally and has nothing to * configure, so it is never mentioned here as an alternative or a fallback. * * Connecting takes the project URL and canonical broker origin from the Ory * Console (Agent Security). The public OAuth2 client id defaults to the reserved * Agent Security login client and can be overridden for custom deployments. * Existing configurations use the project URL as a legacy broker fallback. * `--disconnect` clears all three stored connection values. * * With no arguments, prints what is currently resolved. */ export declare function runConfigureCommand(binName: string, args: string[]): void; /** * Print the "Configuration:" block showing the resolved Ory connection. */ export declare function printOryConfig(): void; /** * Print the "Environment:" block showing Ory-related environment variables. */ export declare function printEnvironment(): void; /** * Print the last 10 unified activity/debug log entries. When `harness` is given the path is * resolved the same way the plugin does at runtime — the default per-harness * data-dir location when `ORY_AGENT_LOG_FILE` is unset — so `status` finds the * log without the reader hand-setting env vars. Activity is always filed; * verbose diagnostic entries are included only when `ORY_AGENT_DEBUG=true`. */ export declare function printLogTail(harness?: string): void; /** * Print the "Configure your Ory credentials" help text. */ export declare function printEnvHelp(binName: string): void; /** * Returns true if `/dev/tty` can be opened for reading. Use this before * attempting to prompt the user — the harness has already taken stdin so * we cannot use `process.stdin`. */ export declare function isTtyAvailable(): boolean; /** * Prompt the user to enter a value on /dev/tty. Returns the trimmed * line, or null if no TTY is available. The prompt is written to stderr * — never stdout. */ export declare function promptOnTty(prompt: string): Promise; /** * Inline prompt for the Ory project URL. Persists the entered URL to the * shared config file and returns it. Returns null if the user cancels * (empty input) or no TTY is available. * * This is the structured counterpart to {@link interactiveConfigPrompt}, * which only blocks until the user runs `configure` in another terminal. */ export declare function promptForProjectUrl(binName: string): Promise; /** * Display a friendly configuration prompt on stderr and block until the * user presses Enter. After the user continues, re-checks config from * disk and returns true if Ory is now configured. * * Falls back to non-interactive mode (returns false immediately) when * no TTY is available (e.g. CI). */ export declare function interactiveConfigPrompt(binName: string): Promise; /** * Run the `agent ` family of CLI commands. Subcommands: * * - `status` — inspect the actor-bound runtime credential. * - `unregister` — clean up legacy OAuth registrations. * * Each installed harness owns its own agent identity, so both subcommands act * on `harness`'s registration by default. `--all` widens them to every * harness registered against the shared config. * * Returns the process exit code (0 on success, non-zero on usage error). */ export declare function runAgentCommand(binName: string, harness: string, args: string[]): Promise;