import * as Effect from "effect/Effect"; import * as Option from "effect/Option"; import * as Schema from "effect/Schema"; import { Command } from "effect/unstable/cli"; import { type TokenPermissionLevel } from "@agentxm/registry-access/authentication"; import { HumanVerificationOptions } from "../../cli-flags/index.js"; import { Screen } from "../../screen/index.js"; export declare const TokenListItemSchema: Schema.Struct<{ readonly id: Schema.String; readonly name: Schema.NullOr; readonly type: Schema.String; readonly permissions: Schema.NullOr; readonly extensions: Schema.$Array; readonly permission: Schema.Literals; }>>; readonly createdAt: Schema.decodeTo; readonly expiresAt: Schema.decodeTo; readonly lastUsedAt: Schema.NullOr>; }>; export declare const TokenListDocumentFields: { items: Schema.$Array; readonly type: Schema.String; readonly permissions: Schema.NullOr; readonly extensions: Schema.$Array; readonly permission: Schema.Literals; }>>; readonly createdAt: Schema.decodeTo; readonly expiresAt: Schema.decodeTo; readonly lastUsedAt: Schema.NullOr>; }>>; count: Schema.Number; hasMore: Schema.Boolean; cursor: Schema.NullOr; }; export declare const TokenListDocumentSchema: Schema.Struct<{ items: Schema.$Array; readonly type: Schema.String; readonly permissions: Schema.NullOr; readonly extensions: Schema.$Array; readonly permission: Schema.Literals; }>>; readonly createdAt: Schema.decodeTo; readonly expiresAt: Schema.decodeTo; readonly lastUsedAt: Schema.NullOr>; }>>; count: Schema.Number; hasMore: Schema.Boolean; cursor: Schema.NullOr; }>; export type TokenListDocument = typeof TokenListDocumentSchema.Type; export declare const RevokeTokenResultSchema: Schema.Struct<{ readonly status: Schema.Literal<"revoked">; readonly tokenId: Schema.String; }>; export declare const RevokeTokenDocumentSchema: Schema.Struct<{ result: Schema.Struct<{ readonly status: Schema.Literal<"revoked">; readonly tokenId: Schema.String; }>; }>; export type RevokeTokenDocument = typeof RevokeTokenDocumentSchema.Type; export interface CreateTokenHandlerArgs { readonly name: string; readonly expires: string; readonly owners: readonly string[]; readonly extensions: readonly string[]; readonly permission: TokenPermissionLevel; readonly output?: "token" | "human"; } export interface TokenHandlerArgs { readonly output?: "token" | "human"; } export declare const handleToken: (args: TokenHandlerArgs) => Effect.Effect; export declare const handleCreateToken: (args: CreateTokenHandlerArgs) => Effect.Effect; export declare const handleListTokens: () => Effect.Effect; export declare const handleRevokeToken: (tokenId: string) => Effect.Effect; export declare const tokenCommand: Command.Command<"token", {} | { readonly output: Option.Option<"human" | "token">; }, {}, import("../../app-error/app-error.ts").AppError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | "effect/unstable/cli/GlobalFlag/axm-non-interactive" | "effect/unstable/cli/GlobalFlag/axm-json" | "effect/unstable/cli/GlobalFlag/axm-quiet" | "effect/unstable/cli/GlobalFlag/axm-verbose" | "effect/unstable/cli/GlobalFlag/axm-debug" | import("@agentxm/registry-access/authentication").DeviceLoginInteraction | import("@agentxm/registry-access/authentication").AuthLoginInteraction | "effect/unstable/cli/GlobalFlag/axm-directory">; //# sourceMappingURL=token.d.ts.map