import type { DatabaseSync } from 'node:sqlite'; import type { HomeOpportunityActionResponse } from '@xopcai/gateway-contract'; import { type HomeOpportunityFeedbackInput, type HomePrincipal } from './repository.js'; export declare class HomeOpportunityNotFoundError extends Error { } export declare class HomeOpportunityActionError extends Error { } export declare class HomeOpportunityApplicationService { private readonly db; private readonly principal; private readonly resolveAgentId; private readonly repository; private readonly tasks; private readonly taskApplication; constructor(db: DatabaseSync, principal: HomePrincipal, resolveAgentId?: () => string); start(input: { opportunityId: string; expectedRevision: number; idempotencyKey: string; now: number; }, options?: { degraded?: boolean; }): HomeOpportunityActionResponse; discuss(input: { opportunityId: string; expectedRevision: number; idempotencyKey: string; now: number; }): HomeOpportunityActionResponse; feedback(opportunityId: string, input: HomeOpportunityFeedbackInput): void; }