import { CredentialEntry } from "../workspace/types"; /** * Store a credential (token, password, or SSH key passphrase) * 存储凭证(token、密码或 SSH 密钥口令) */ export declare function storeCredential(credsDir: string, platform: CredentialEntry["platform"], type: CredentialEntry["type"], label: string, value: string): string; /** * Retrieve a credential value * 获取凭证值 */ export declare function getCredential(credsDir: string, credentialId: string): string | null; /** * List all stored credentials (without values) * 列出所有已存储的凭证(不含值) */ export declare function listCredentials(credsDir: string): CredentialEntry[]; /** * Delete a credential * 删除凭证 */ export declare function deleteCredential(credsDir: string, credentialId: string): boolean; /** * Find credentials by platform type * 按平台类型查找凭证 */ export declare function findCredentialsByPlatform(credsDir: string, platform: CredentialEntry["platform"]): CredentialEntry[]; /** * Store an npm auth token * 存储 npm 认证 token */ export declare function storeNpmToken(credsDir: string, token: string): string; /** * Get the stored npm token * 获取已存储的 npm token */ export declare function getNpmToken(credsDir: string): string | null;