import type { ScheduledTask, ScheduledTaskScheduleSpec } from "@opengeni/contracts"; export declare const SCHEDULED_TASK_MCP_MAX_BYTES: number; export declare const SCHEDULED_TASK_NAME_MAX_BYTES = 512; export declare const SCHEDULED_TASK_PROMPT_MAX_BYTES: number; export declare const SCHEDULED_TASK_SCHEDULE_FIELD_MAX_BYTES = 256; type Utf8Projection = { value: string; originalBytes: number; deliveredBytes: number; truncated: boolean; }; export type ScheduledTaskUtf8ProjectionFact = Omit; type ScheduledTaskScheduleProjection = { schedule: Extract; projection: { type: "manual"; truncated: false; fields: Record; }; } | { schedule: Extract; projection: { type: "once"; truncated: boolean; fields: { runAt: ScheduledTaskUtf8ProjectionFact; timeZone: ScheduledTaskUtf8ProjectionFact; }; }; } | { schedule: Extract; projection: { type: "interval"; truncated: boolean; fields: { startAt: ScheduledTaskUtf8ProjectionFact | null; endAt: ScheduledTaskUtf8ProjectionFact | null; }; }; } | { schedule: Extract; projection: { type: "calendar"; truncated: boolean; fields: { timeZone: ScheduledTaskUtf8ProjectionFact; }; }; }; export declare function projectScheduledTaskUtf8(value: string, maxBytes: number): Utf8Projection; export declare function projectScheduledTaskSchedule(schedule: ScheduledTaskScheduleSpec): ScheduledTaskScheduleProjection; export declare function scheduledTaskMcpSummary(task: ScheduledTask): { id: string; name: string; status: "active" | "paused"; schedule: { type: "manual"; } | { type: "once"; runAt: string; timeZone: string; } | { type: "interval"; everySeconds: number; startAt?: string | undefined; endAt?: string | undefined; } | { type: "calendar"; timeZone: string; hour: number; minute: number; daysOfWeek?: ("FRIDAY" | "MONDAY" | "SATURDAY" | "SUNDAY" | "THURSDAY" | "TUESDAY" | "WEDNESDAY")[] | undefined; }; runMode: "existing_session" | "new_session_per_run" | "reusable_session"; overlapPolicy: "allow_concurrent" | "buffer_one" | "skip"; action: { kind: "agent_turn"; sourceId?: never; sourceGeneration?: never; sourceLifecycleGeneration?: never; destination?: never; initiatingSubjectId?: never; allDescendants?: never; connection?: never; limits?: never; } | { kind: "knowledge_source_sync"; sourceId: string; sourceGeneration: number; sourceLifecycleGeneration: number; destination: { kind: "organization"; workspaceId: null; subjectId: null; } | { kind: "workspace"; workspaceId: string; subjectId: null; } | { kind: "personal"; workspaceId: string | null; subjectId: string; }; initiatingSubjectId: string; allDescendants: boolean; connection: { connectionId: string; connectionVersion: number; providerDomain: string; kind: "api_key" | "app_install" | "delegated" | "oauth2"; ownerSubjectId: string; }; limits: { maxItems: number; maxBytes: number; maxFileBytes: number; maxProviderRequests: number; maxElapsedSeconds: number; maxConcurrency: number; maxFailureDetails: number; }; }; targetSessionId: string | null; reusableSessionId: string | null; variableSetId: string | null; rigId: string | null; createdAt: string; updatedAt: string; configuration: { model: string | null; reasoningEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null; sandboxBackend: "blaxel" | "cloudflare" | "daytona" | "docker" | "e2b" | "local" | "modal" | "none" | "opensandbox" | "runloop" | "selfhosted" | "vercel" | null; hasGoal: boolean; promptBytes: number; resourceCount: number; toolCount: number; metadataKeyCount: number; taskMetadataKeyCount: number; }; projection: { bounded: boolean; name: ScheduledTaskUtf8ProjectionFact; schedule: { type: "manual"; truncated: false; fields: Record; } | { type: "once"; truncated: boolean; fields: { runAt: ScheduledTaskUtf8ProjectionFact; timeZone: ScheduledTaskUtf8ProjectionFact; }; } | { type: "interval"; truncated: boolean; fields: { startAt: ScheduledTaskUtf8ProjectionFact | null; endAt: ScheduledTaskUtf8ProjectionFact | null; }; } | { type: "calendar"; truncated: boolean; fields: { timeZone: ScheduledTaskUtf8ProjectionFact; }; }; model: ScheduledTaskUtf8ProjectionFact | null; createdAt: ScheduledTaskUtf8ProjectionFact; updatedAt: ScheduledTaskUtf8ProjectionFact; bytes: number; maxBytes: number; }; }; export declare function boundScheduledTaskDetailMcp(task: ScheduledTask): { id: string; name: string; status: "active" | "paused"; schedule: { type: "manual"; } | { type: "once"; runAt: string; timeZone: string; } | { type: "interval"; everySeconds: number; startAt?: string | undefined; endAt?: string | undefined; } | { type: "calendar"; timeZone: string; hour: number; minute: number; daysOfWeek?: ("FRIDAY" | "MONDAY" | "SATURDAY" | "SUNDAY" | "THURSDAY" | "TUESDAY" | "WEDNESDAY")[] | undefined; }; runMode: "existing_session" | "new_session_per_run" | "reusable_session"; overlapPolicy: "allow_concurrent" | "buffer_one" | "skip"; action: { kind: "agent_turn"; sourceId?: never; sourceGeneration?: never; sourceLifecycleGeneration?: never; destination?: never; initiatingSubjectId?: never; allDescendants?: never; connection?: never; limits?: never; } | { kind: "knowledge_source_sync"; sourceId: string; sourceGeneration: number; sourceLifecycleGeneration: number; destination: { kind: "organization"; workspaceId: null; subjectId: null; } | { kind: "workspace"; workspaceId: string; subjectId: null; } | { kind: "personal"; workspaceId: string | null; subjectId: string; }; initiatingSubjectId: string; allDescendants: boolean; connection: { connectionId: string; connectionVersion: number; providerDomain: string; kind: "api_key" | "app_install" | "delegated" | "oauth2"; ownerSubjectId: string; }; limits: { maxItems: number; maxBytes: number; maxFileBytes: number; maxProviderRequests: number; maxElapsedSeconds: number; maxConcurrency: number; maxFailureDetails: number; }; }; targetSessionId: string | null; reusableSessionId: string | null; variableSetId: string | null; rigId: string | null; createdAt: string; updatedAt: string; configuration: { model: string | null; reasoningEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null; sandboxBackend: "blaxel" | "cloudflare" | "daytona" | "docker" | "e2b" | "local" | "modal" | "none" | "opensandbox" | "runloop" | "selfhosted" | "vercel" | null; hasGoal: boolean; promptBytes: number; resourceCount: number; toolCount: number; metadataKeyCount: number; taskMetadataKeyCount: number; }; projection: { bounded: boolean; name: ScheduledTaskUtf8ProjectionFact; schedule: { type: "manual"; truncated: false; fields: Record; } | { type: "once"; truncated: boolean; fields: { runAt: ScheduledTaskUtf8ProjectionFact; timeZone: ScheduledTaskUtf8ProjectionFact; }; } | { type: "interval"; truncated: boolean; fields: { startAt: ScheduledTaskUtf8ProjectionFact | null; endAt: ScheduledTaskUtf8ProjectionFact | null; }; } | { type: "calendar"; truncated: boolean; fields: { timeZone: ScheduledTaskUtf8ProjectionFact; }; }; model: ScheduledTaskUtf8ProjectionFact | null; createdAt: ScheduledTaskUtf8ProjectionFact; updatedAt: ScheduledTaskUtf8ProjectionFact; bytes: number; maxBytes: number; }; entity: { agentConfig: { prompt: string; resources: Record[]; tools: Record[]; metadataKeys: string[]; model: string | null; reasoningEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null; sandboxBackend: "blaxel" | "cloudflare" | "daytona" | "docker" | "e2b" | "local" | "modal" | "none" | "opensandbox" | "runloop" | "selfhosted" | "vercel" | null; goal: { text: string; successCriteria: string | null; maxAutoContinuations: number | null; } | null; }; taskMetadataKeys: string[]; }; detailProjection: { bounded: boolean; fullEntityAvailableViaRest: boolean; reducedForBytes: boolean; terminal: boolean; prompt: ScheduledTaskUtf8ProjectionFact; goalText: ScheduledTaskUtf8ProjectionFact | null; goalSuccessCriteria: ScheduledTaskUtf8ProjectionFact | null; resources: { originalCount: number; deliveredCount: number; originalBytes: number; truncatedIdentityFieldCount: number; }; tools: { originalCount: number; deliveredCount: number; originalBytes: number; truncatedIdentityFieldCount: number; }; metadata: { originalKeyCount: number; deliveredKeyCount: number; originalBytes: number; truncatedKeyCount: number; valuesIncluded: boolean; }; taskMetadata: { originalKeyCount: number; deliveredKeyCount: number; originalBytes: number; truncatedKeyCount: number; valuesIncluded: boolean; }; bytes: number; maxBytes: number; }; }; export declare function boundScheduledTaskMcpPage(input: { tasks: ScheduledTask[]; limit: number; offset: number; sourceHasMore: boolean; maxBytes?: number; }): { tasks: { id: string; name: string; status: "active" | "paused"; schedule: { type: "manual"; } | { type: "once"; runAt: string; timeZone: string; } | { type: "interval"; everySeconds: number; startAt?: string | undefined; endAt?: string | undefined; } | { type: "calendar"; timeZone: string; hour: number; minute: number; daysOfWeek?: ("FRIDAY" | "MONDAY" | "SATURDAY" | "SUNDAY" | "THURSDAY" | "TUESDAY" | "WEDNESDAY")[] | undefined; }; runMode: "existing_session" | "new_session_per_run" | "reusable_session"; overlapPolicy: "allow_concurrent" | "buffer_one" | "skip"; action: { kind: "agent_turn"; sourceId?: never; sourceGeneration?: never; sourceLifecycleGeneration?: never; destination?: never; initiatingSubjectId?: never; allDescendants?: never; connection?: never; limits?: never; } | { kind: "knowledge_source_sync"; sourceId: string; sourceGeneration: number; sourceLifecycleGeneration: number; destination: { kind: "organization"; workspaceId: null; subjectId: null; } | { kind: "workspace"; workspaceId: string; subjectId: null; } | { kind: "personal"; workspaceId: string | null; subjectId: string; }; initiatingSubjectId: string; allDescendants: boolean; connection: { connectionId: string; connectionVersion: number; providerDomain: string; kind: "api_key" | "app_install" | "delegated" | "oauth2"; ownerSubjectId: string; }; limits: { maxItems: number; maxBytes: number; maxFileBytes: number; maxProviderRequests: number; maxElapsedSeconds: number; maxConcurrency: number; maxFailureDetails: number; }; }; targetSessionId: string | null; reusableSessionId: string | null; variableSetId: string | null; rigId: string | null; createdAt: string; updatedAt: string; configuration: { model: string | null; reasoningEffort: "high" | "low" | "max" | "medium" | "minimal" | "none" | "xhigh" | null; sandboxBackend: "blaxel" | "cloudflare" | "daytona" | "docker" | "e2b" | "local" | "modal" | "none" | "opensandbox" | "runloop" | "selfhosted" | "vercel" | null; hasGoal: boolean; promptBytes: number; resourceCount: number; toolCount: number; metadataKeyCount: number; taskMetadataKeyCount: number; }; projection: { bounded: boolean; name: ScheduledTaskUtf8ProjectionFact; schedule: { type: "manual"; truncated: false; fields: Record; } | { type: "once"; truncated: boolean; fields: { runAt: ScheduledTaskUtf8ProjectionFact; timeZone: ScheduledTaskUtf8ProjectionFact; }; } | { type: "interval"; truncated: boolean; fields: { startAt: ScheduledTaskUtf8ProjectionFact | null; endAt: ScheduledTaskUtf8ProjectionFact | null; }; } | { type: "calendar"; truncated: boolean; fields: { timeZone: ScheduledTaskUtf8ProjectionFact; }; }; model: ScheduledTaskUtf8ProjectionFact | null; createdAt: ScheduledTaskUtf8ProjectionFact; updatedAt: ScheduledTaskUtf8ProjectionFact; bytes: number; maxBytes: number; }; }[]; page: { limit: number; offset: number; hasMore: boolean; nextOffset: number | null; }; projection: { bounded: boolean; rowsDroppedForBytes: boolean; droppedRowCount: number; droppedRows: { id: string; nextAction: { tool: string; arguments: { id: string; includeEntity: boolean; }; }; }[]; sourceRowsConsumed: number; rowsReturned: number; terminal: boolean; reason?: string; bytes: number; maxBytes: number; }; }; export {};