import { type types } from "https://deno.land/x/embassyd_sdk@v0.3.4-alpha1/mod.ts";
const { Effects } = types;
Used to reach out from the pure js runtime
definition: { writeFile(input: { path: string; volumeId: string; toWrite: string; }): Promise<void>; readFile(input: { volumeId: string; path: string; }): Promise<string>; metadata(input: { volumeId: string; path: string; }): Promise<Metadata>; createDir(input: { volumeId: string; path: string; }): Promise<string>; removeDir(input: { volumeId: string; path: string; }): Promise<string>; removeFile(input: { volumeId: string; path: string; }): Promise<void>; writeJsonFile(input: { volumeId: string; path: string; toWrite: Record<string, unknown>; }): Promise<void>; readJsonFile(input: { volumeId: string; path: string; }): Promise<Record<string, unknown>>; runCommand(input: { command: string; args?: string[]; timeoutMillis?: number; }): Promise<ResultType<string>>; runDaemon(input: { command: string; args?: string[]; }): { wait(): Promise<ResultType<string>>; term(): Promise<void>; }; sleep(timeMs: number): Promise<null>; trace(whatToPrint: string): void; warn(whatToPrint: string): void; error(whatToPrint: string): void; debug(whatToPrint: string): void; info(whatToPrint: string): void; is_sandboxed(): boolean; exists(input: { volumeId: string; path: string; }): Promise<boolean>; fetch(url: string, options?: { method?: ; headers?: Record<string, string>; body?: string; }): Promise<{ method: string; ok: boolean; status: number; headers: Record<string, string>; body?: string | null; text(): Promise<string>; json(): Promise<unknown>; }>; runRsync(options: { srcVolume: string; dstVolume: string; srcPath: string; dstPath: string; options: BackupOptions; }): { id: () => Promise<string>; wait: () => Promise<null>; progress: () => Promise<number>; }; }
| "GET"
| "POST"
| "PUT"
| "DELETE"
| "HEAD"
| "PATCH"