@ply-ct/ply
Version:
REST API Automated Testing
22 lines (21 loc) • 657 B
TypeScript
import { Location } from './location';
import { Storage } from './storage';
/**
* Abstracts retrieval from either URL or {@link Storage}.
*/
export declare class Retrieval {
readonly location: Location;
/**
* @param location file path or url (backslashes are replaced with slashes)
*/
constructor(location: string);
read(): Promise<string | undefined>;
sync(): string | undefined;
get exists(): Promise<boolean>;
write(contents: string): void;
append(contents: string): void;
insert(contents: string, start: number): void;
remove(): void;
toString(): string;
get storage(): Storage | undefined;
}