/** * @fractary/core - GCS Storage Implementation * * Google Cloud Storage backend for file operations. * Uses @google-cloud/storage with lazy loading. */ import { Storage, GCSStorageConfig } from './types'; /** * Google Cloud Storage implementation */ export declare class GCSStorage implements Storage { private config; private storageClient; private bucket; constructor(config: GCSStorageConfig); /** * Get or create the GCS client (lazy loaded) */ private getClient; /** * Get the full GCS path with optional prefix */ private getPath; /** * Check if an error is a "not found" error * Google Cloud SDK uses error.code (number) or error.errors[].reason */ private isNotFoundError; /** * Write content to GCS */ write(id: string, content: string | Buffer): Promise; /** * Read content from GCS */ read(id: string): Promise; /** * Check if object exists in GCS */ exists(id: string): Promise; /** * List objects in GCS with optional prefix */ list(prefix?: string): Promise; /** * Delete object from GCS */ delete(id: string): Promise; /** * Get a signed URL for the object */ getUrl(id: string, expiresIn?: number): Promise; /** * Get the bucket name */ getBucket(): string; /** * Get the project ID */ getProjectId(): string; /** * Get the configured prefix */ getPrefix(): string | undefined; } //# sourceMappingURL=gcs.d.ts.map