Defines comprehensive TypeScript interfaces for managing PDF file metadata and state across the Stirling PDF editor.
// Source: https://github.com/Stirling-Tools/Stirling-PDF | License: MIT | Copyright 2025 Stirling PDF Inc
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Types for global file context management across views and tools
*/
import { PageOperation } from "@editor/types/pageEditor";
import { FileId, BaseFileMetadata } from "@editor/types/file";
import { generateId } from "@editor/utils/generateId";
import {
bindPdfAccess,
getPdfAccess,
rememberPdfAccess,
} from "@editor/services/pdfAccessService";
import type { DiskUnavailableReason } from "@editor/services/desktopFileLink";
// Re-export FileId for convenience
export type { FileId };
/** How sure a classifier was about the labels it produced. */
export type ClassificationConfidence = "none" | "low" | "medium"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key