mirror of
https://github.com/immich-app/immich.git
synced 2025-06-09 00:24:42 -04:00
26 lines
688 B
TypeScript
26 lines
688 B
TypeScript
import { ChildProcessWithoutNullStreams, SpawnOptionsWithoutStdio } from 'node:child_process';
|
|
import { Readable } from 'node:stream';
|
|
|
|
export interface ImmichReadStream {
|
|
stream: Readable;
|
|
type?: string;
|
|
length?: number;
|
|
}
|
|
|
|
export interface ImmichZipStream extends ImmichReadStream {
|
|
addFile: (inputPath: string, filename: string) => void;
|
|
finalize: () => Promise<void>;
|
|
}
|
|
|
|
export interface DiskUsage {
|
|
available: number;
|
|
free: number;
|
|
total: number;
|
|
}
|
|
|
|
export const IProcessRepository = 'IProcessRepository';
|
|
|
|
export interface IProcessRepository {
|
|
spawn(command: string, args?: readonly string[], options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams;
|
|
}
|