import type { CronJob, CronRunStatus, CronStoreFile, CronTaskSourceListFilters, CronTaskSourceQualityBand, CronTaskTrustedSource } from "./types.js";
export declare function trustedSourceUrl(source: CronTaskTrustedSource): string | undefined;
export declare function classifyTrustedSourceTaskType(text: string): string;
export declare function createTrustedSourceForJob(params: {
    job: CronJob;
    source: string;
    nowMs: number;
}): CronTaskTrustedSource;
export declare function mergeTrustedSources(current: CronTaskTrustedSource[] | undefined, next: CronTaskTrustedSource[] | undefined): CronTaskTrustedSource[] | undefined;
export declare function upsertTrustedSource(store: CronStoreFile, source: CronTaskTrustedSource): CronTaskTrustedSource;
export declare function recordTrustedSourceOutcome(store: CronStoreFile, params: {
    trustedSourceId?: string;
    nowMs: number;
    status: CronRunStatus;
    qualityScore?: number;
    qualityBand?: CronTaskSourceQualityBand;
    error?: string;
}): CronTaskTrustedSource | undefined;
export declare function matchingTrustedSourcesForTask(params: {
    store?: CronStoreFile | null;
    agentId?: string;
    sessionKey?: string;
    text: string;
    limit?: number;
}): CronTaskTrustedSource[];
export declare function listTrustedSources(store: CronStoreFile, filters?: CronTaskSourceListFilters): CronTaskTrustedSource[];
export declare function setTrustedSourceActive(store: CronStoreFile, id: string, active: boolean, nowMs: number): CronTaskTrustedSource | undefined;
export declare function removeTrustedSource(store: CronStoreFile, id: string): boolean;
