/** * Copyright (c) 2026, Salesforce, Inc., * All rights reserved. * For full license text, see the LICENSE.txt file */ export interface OrgAuth { /** * Captured at resolution time as a liveness check (a missing token means the * auth has expired). NOT used to authenticate requests: the HTTP layer builds * a `Connection` from the alias and lets `@salesforce/core` inject/refresh the * token. Retained for callers that surface token state. */ accessToken: string; instanceUrl: string; username: string; orgId: string; alias: string; } export interface OrgListEntry { alias: string; username: string; instanceUrl: string; orgId: string; type: "scratch" | "non-scratch"; isConnected: boolean; } export declare function clearOrgAuthCache(): void; /** * Reads Salesforce org credentials via @salesforce/core. * Results are memoized for the lifetime of the process so repeated calls * within the same command (or an interactive session) only resolve once. */ export declare function getOrgAuth(orgAlias: string): Promise; /** * Lists available Salesforce orgs via AuthInfo.listAllAuthorizations(). * Marks orgs that have a cached graphiti schema or session. */ export declare function listOrgs(): Promise;