import { SpecifyDesignTokenFormat } from '@specifyapp/specify-design-token-format'; import { SDTFClient } from './SDTFClient.js'; /** * The main Specify client to interact with the Specify API. */ export declare class SpecifyClient { #private; constructor(); /** * Returns whether the client is authenticated or not. */ get isAuthenticated(): boolean; /** * Authenticates the client with a Personal Access Token. Can be generated at https://specifyapp.com/user/personal-access-tokens * @param personalAccessToken */ authenticate(personalAccessToken: string): Promise; /** * Returns the current user if authenticated. */ whoAmI(): { email: string; id: string; username: string; fullname: string; organizations: { id: string; namespace: string; domain: string | null; }[]; } | null; /** * Logs out the current user. */ logout(): void; /** * Returns the repositories list of the current organization. */ getRepositories(): Promise<{ name: string; id: string; version: number; createdAt: string; updatedAt: string; }[]>; /** * Returns a SDTFClient instance to work with the SDTF token tree of the repository. * * @param repositoryName - The name of the repository. */ getSDTFClientByRepositoryName(repositoryName: string): Promise; /** * Returns a SDTFClient instance to work with an empty SDTF token tree. * @param tokenTree */ loadSDTFClient(tokenTree: SpecifyDesignTokenFormat): SDTFClient; } //# sourceMappingURL=SpecifyClient.d.ts.map