import type { CommandNode } from "toolcraft"; export interface TokenSource { getToken(): Promise; invalidate?(token?: string): Promise; } export interface CommandContributor { commands: CommandNode[]; } export type AuthProvider = TokenSource & CommandContributor;