UNPKG

balena-cli

Version:

The official balena Command Line Interface

17 lines (16 loc) 1.04 kB
import type * as SDK from 'balena-sdk'; export declare const getFileCreatedDate: (filePath: string) => Promise<Date>; export declare const getImagePath: (deviceType: string, version?: string) => Promise<string>; export declare const isImageFresh: (deviceType: string, version: string) => Promise<boolean>; export declare const isESR: (version: string) => boolean; export declare const getImage: (deviceType: string, version: string) => Promise<import("fs").ReadStream & { mime: string; }>; export declare const getImageWritableStream: (deviceType: string, version?: string) => Promise<import("fs").WriteStream & Record<"persistCache" | "removeCache", () => Promise<void>>>; type DownloadConfig = NonNullable<Parameters<SDK.BalenaSDK['models']['os']['download']>[0]>; export declare const getStream: (deviceType: string, versionOrRange?: string, options?: Omit<DownloadConfig, "deviceType" | "version">) => Promise<(import("fs").ReadStream & { mime: string; }) | (import("stream").PassThrough & { mime: string; })>; export {};