import { GGFile } from "@grest-ts/schema-file"; /** * Test utilities for creating GGFile instances in tests. * * @example * ```typescript * // Create from buffer * const file = GGTestFile.fromBuffer( * new Uint8Array([0x89, 0x50, 0x4E, 0x47]), * 'test.png', * 'image/png' * ); * * // Create from string * const textFile = GGTestFile.fromString('Hello World', 'hello.txt'); * * // Generate random test files * const randomImage = GGTestFile.random(1024, 'test.png', 'image/png'); * ``` */ export declare const GGTestFile: { /** * Create a GGFile from a Uint8Array buffer. */ fromBuffer(data: Uint8Array, name: string, mimeType?: string): GGFile; /** * Create a GGFile from a string (encoded as UTF-8). */ fromString(content: string, name: string, mimeType?: string): GGFile; /** * Create a GGFile from a base64-encoded string. */ fromBase64(base64: string, name: string, mimeType?: string): GGFile; /** * Create a GGFile with random bytes of specified size. * Useful for testing file size limits. */ random(size: number, name: string, mimeType?: string): GGFile; /** * Create a minimal valid PNG file (1x1 transparent pixel). * Useful for testing image upload endpoints. */ png1x1(name?: string): GGFile; /** * Create a minimal valid JPEG file (1x1 red pixel). * Useful for testing image upload endpoints. */ jpeg1x1(name?: string): GGFile; /** * Create a minimal valid PDF file. * Useful for testing document upload endpoints. */ pdf(name?: string): GGFile; /** * Create a JSON file from an object. */ json(data: unknown, name?: string): GGFile; /** * Create a CSV file from rows. */ csv(rows: string[][], name?: string): GGFile; }; //# sourceMappingURL=GGTestFile.d.ts.map