import { type SQL, type SQLWrapper } from "drizzle-orm"; export declare const SESSION_MCP_PROGRESS_CHARS = 600; export declare function sessionTextStoragePrefixChars(maxChars: number): number; export declare const SESSION_MCP_PROGRESS_STORAGE_CHARS: number; export declare const SESSION_MCP_PROGRESS_UTF16_BASE64_PATTERN = "([A-Za-z0-9+/]{8})*([A-Za-z0-9+/]{8}|[A-Za-z0-9+/]{2}[AEIMQUYcgkosw048]=|[A-Za-z0-9+/]{5}[AQgw]==)"; /** Validate the full scalar in storage; transfer only this boolean, not its suffix. */ export declare function sessionMcpProgressScalarIsEncodedSql(value: SQL, codecVersion: SQLWrapper): SQL; /** Project only the selected scalar, never the rest of its event payload. */ export declare function projectSessionTextPrefix(storedPrefix: string | null, storedChars: number | null, codecVersion: number | null, scalarIsEncoded: boolean, maxChars: number): { text: string | null; originalChars: number | null; textTruncated?: true; }; /** Existing MCP progress budget, using the shared logical-text prefix projection. */ export declare function projectSessionMcpProgressText(storedPrefix: string | null, storedChars: number | null, codecVersion: number | null, scalarIsEncoded: boolean): { text: string | null; originalChars: number | null; textTruncated?: true; };