import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { createErrorToolResponse } from './tool-response.js'; export declare function resetMaxFileCharsCacheForTesting(): void; export declare function validateFileBudget(content: string): ReturnType | undefined; export declare const SOURCE_RESOURCE_URI = "internal://file/current"; export declare const fileStaleWarningMs: import("./config.js").CachedEnvInt; export interface FileSlot { filePath: string; content: string; language: string; lineCount: number; sizeChars: number; /** Date.now() epoch ms — used for TTL checks and stale warnings. */ cachedAt: number; /** ISO 8601 timestamp for display in resources and tool responses. */ cachedAtIso: string; } /** Binds file resource notifications to the currently active server instance. */ export declare function initFileStore(server: McpServer): void; export declare function disposeFileStore(): void; export declare function storeFile(slot: FileSlot): void; export declare function getFile(): FileSlot | undefined; /** Test-only: directly set or clear the file slot without emitting resource-updated. */ export declare function setFileForTesting(slot: FileSlot | undefined): void; export declare function createNoFileError(): ReturnType;