import { t as Volume } from "../volume-C3ZPZJ79.js";
import { n as Stream, t as CapabilityFactory } from "../core-CSZf27yz.js";

//#region ../app/capabilities/volume/contract.d.ts
interface VolumeEntry {
  path: string;
  type: 'file' | 'dir';
  mtimeNs?: number;
}
type VolumeCapability = Omit<Volume, 'watch' | 'scan' | 'writeFile'> & {
  scan(input: {
    path: string;
    recursive?: boolean;
  }): Promise<VolumeEntry[]>;
  writeFile(path: string, data: Uint8Array, opts?: {
    exclusive?: boolean;
    update?: boolean;
    parents?: boolean;
  }): Promise<void>;
};
interface WatchEvent {
  source?: string;
}
interface VolumeStreams {
  watch(input: {
    path: string;
    recursive?: boolean;
  }): Stream<WatchEvent>;
}
//#endregion
//#region ../app/capabilities/volume/index.d.ts
declare const volume: CapabilityFactory<"volume", VolumeCapability, VolumeStreams>;
//#endregion
export { type VolumeCapability, type VolumeEntry, type WatchEvent, volume };
//# sourceMappingURL=volume.d.ts.map