import { PklTranscript } from './transcript.js'; import { TranscriptMetadata, TranscriptStatus } from './types.js'; /** * Options for listing transcripts */ export interface ListTranscriptsOptions { directory: string; limit?: number; offset?: number; sortBy?: 'date' | 'filename' | 'title'; sortOrder?: 'asc' | 'desc'; startDate?: string; endDate?: string; search?: string; status?: TranscriptStatus; project?: string; projectId?: string; tags?: string[]; entityId?: string; entityType?: 'person' | 'project' | 'term' | 'company'; } /** * A transcript list item with metadata */ export interface TranscriptListItem { filePath: string; relativePath: string; title: string; date: Date | null; project?: string; tags: string[]; status: TranscriptStatus; duration?: string; contentPreview: string; } /** * Result of listing transcripts */ export interface ListTranscriptsResult { transcripts: TranscriptListItem[]; total: number; hasMore: boolean; } /** * List transcripts in a directory with filtering and pagination */ export declare function listTranscripts(options: ListTranscriptsOptions): Promise; /** * Check if a transcript exists at the given path */ export declare function transcriptExists(filePath: string): Promise; /** * Delete a transcript */ export declare function deleteTranscript(filePath: string): Promise; /** * Get the .pkl path for a given base path * Handles paths with or without extension */ export declare function getPklPath(basePath: string): string; /** * Read a transcript and return its full data as a structured object * This is the primary way clients should read transcripts */ export interface TranscriptData { filePath: string; metadata: TranscriptMetadata; content: string; hasRawTranscript: boolean; } export declare function readTranscript(filePath: string): Promise; /** * Create a new transcript */ export declare function createTranscript(filePath: string, metadata: TranscriptMetadata): PklTranscript; /** * Open an existing transcript for editing */ export declare function openTranscript(filePath: string, options?: { readOnly?: boolean; }): PklTranscript; //# sourceMappingURL=storage.d.ts.map