import type { FastifyPluginAsyncZod } from 'fastify-type-provider-zod'; import type { VideoJob } from '../core/video-jobs-store.js'; import type { QvacContext } from '../lib/types.js'; /** * Single source of truth for "this job is going away — release everything it * owns". Called from the DELETE handler AND from the store's `onEvict` * callback (max-entries pressure), so DELETE and silent eviction share the * same teardown: abort the local controller (interrupts the drain loop), * cancel the SDK request if we have its `requestId`, and remove any * ephemeral-file ids backing the rendered bytes. * * No-throw — runs in fire-and-forget contexts (server-side eviction) where a * thrown cancel-RPC failure would crash the surrounding hook. SDK cancel * failures are logged at DEBUG. */ declare function tearDownJob(ctx: QvacContext, job: VideoJob): void; export { tearDownJob }; export declare function resolveInputReferenceImage(ref: { image_url?: string | undefined; file_id?: string | undefined; }, ctx: QvacContext): Promise; declare const plugin: FastifyPluginAsyncZod; export default plugin; //# sourceMappingURL=videos.d.ts.map