UNPKG

@j0nnyboi/amman

Version:

A modern mandatory toolbelt to help test solana SDK libraries and apps on a locally running validator.

33 lines (32 loc) 1.14 kB
import { Keypair } from '@safecoin/web3.js'; /** * Ensures that a file or directory is accessible to the current user. * @private */ export declare function canAccessSync(p: string): boolean; /** * Ensures that a file or directory is accessible to the current user. * @private */ export declare function canAccess(p: string, flag?: number): Promise<boolean>; /** * Ensures that a file or directory is readable to the current user. * @private */ export declare function canRead(p: string): Promise<boolean>; /** * Ensures that a directory is accessible to the current user. * IF the directory doesn't exist it attempts to create it recursively. * @private */ export declare function ensureDirSync(dir: string): void; /** * Ensures that a directory is accessible to the current user. * IF the directory doesn't exist it attempts to create it recursively. * @private */ export declare function ensureDir(dir: string, rmrf?: boolean): Promise<void>; /** @private */ export declare function keypairFromFile(fullPath: string): Promise<Keypair>; /** @private */ export declare function ensureDirCleaned(dir: string): Promise<void>;