export declare function apiKeysCommand(subcommand: string | undefined, rawArgs: string[]): Promise; /** The flags `rebase api-keys create` takes. */ export declare const CREATE_KEY_FLAGS: { readonly "--name": StringConstructor; readonly "--permissions": StringConstructor; readonly "--full-access": BooleanConstructor; readonly "--admin": BooleanConstructor; readonly "--rate-limit": NumberConstructor; readonly "--expires": StringConstructor; readonly "-n": "--name"; }; /** * What this invocation asks to be created. * * The name may be given either way — `--name "My Key"` or as the single * positional — and under the old permissive parse an undeclared flag became * that positional: `rebase api-keys create --debug --full-access` created a * key called `--debug` with read/write/delete on every collection, and * `--debug` is what the CLI prints after every failure as the thing to re-run * with. Strict parsing makes the flag an error instead of a name. * * Exported so its tests can drive the real parser rather than a copy of it. */ export declare function resolveCreateKeyArgs(rawArgs: string[]): { flags: import("arg").Result<{ readonly "--name": StringConstructor; readonly "--permissions": StringConstructor; readonly "--full-access": BooleanConstructor; readonly "--admin": BooleanConstructor; readonly "--rate-limit": NumberConstructor; readonly "--expires": StringConstructor; readonly "-n": "--name"; }>; name: string; }; /** The flags `rebase api-keys revoke` takes. */ export declare const REVOKE_KEY_FLAGS: { readonly "--id": StringConstructor; }; /** * Which key this invocation names. * * The id is a positional, so the permissive parse handed one straight to the * DELETE: `rebase api-keys revoke --foo` sent * `DELETE /api/admin/api-keys/--foo`, and `rebase --debug api-keys revoke ` * shifted the words along and revoked the key named `revoke`. * * Exported so its tests can drive the real parser rather than a copy of it. */ export declare function resolveRevokeKeyArgs(rawArgs: string[]): { id?: string; };