This directory contains TypeScript types and utilities shared between the frontend and backend.
Defines the structure for PDF tool operations:
type: Operation identifiername: Display namedescription: Tool descriptionicon: Emoji iconManages file upload state:
files: Array of selected filesisUploading: Upload statuserror: Error message if anyPDF metadata structure:
pageCount: Number of pagestitle, author, subject: PDF metadatacreationDate, modificationDate: TimestampsisEncrypted: Encryption statusfileSize: File size in bytesType definitions for tool-specific options:
SplitOptions: Page selection modesRotateOptions: Rotation angle and pagesProtectOptions: Password and permissionsConversionOptions: Image format and qualityStandard response format:
success: Operation success statusmessage: Status or error messagedownloadUrl: File download URLfilename: Suggested filenameinfo: PDF information (for info operations)These types ensure type safety across the frontend and backend, providing a consistent interface for PDF operations and data structures.