/** * Legacy client-credentials authentication helper. * * Descriptor/resource/rdf/secret CLI commands use `auth-context.ts`, which * supports both shared Solid OAuth sessions and client credentials. Keep this * helper only for legacy callers that explicitly need a Solid Node Session from * client credentials. */ import { type PodAuth } from './solid-auth'; /** * 获取 client-credentials 认证信息。 * * 规则: * 1. 只读取 shared Solid auth source:$SOLID_HOME/auth/credentials.json * 2. OAuth credentials intentionally return null here; use auth-context for * resource operations. * * @returns PodAuth 或 null(如果没有保存的 credentials) */ export declare function getAuth(): Promise; /** * 获取认证信息,如果失败则退出进程 * * @returns PodAuth */ export declare function requireAuth(): Promise;