import type { Arguments } from 'yargs'; export interface TokenData { /** 发布密钥 */ token?: string; /** 发布密钥所在文件 */ tokenFile?: string; } export declare function getSecretByFile(file: string): Promise; export declare function getSecretByToken(token: string): T; export declare function transformSecretToToken(data: object): string; export declare const tokenOptions: { readonly token: { readonly type: "string"; readonly describe: "发布密钥"; }; readonly tokenFile: { readonly type: "string"; readonly describe: "发布密钥所在文件"; }; }; export declare function tokenCheck(argv: Arguments): boolean; export declare function getSecretByOption(root: string, opt: TokenData): Promise; //# sourceMappingURL=secret.d.ts.map