import type { Context } from "hono"; import type { ProtocolObjectType } from "../../protocol/public/schemas"; import type { ProtocolStore, StoredProtocolRecord } from "../../protocol/store/port"; import type { TransitionCallerIdentity } from "../admission/hosted-caller-identity"; import { type TransitionErrorContext } from "../errors/transition-error-envelope"; export type HostedEvidenceScopeIdentity = Pick; export type ScopedEvidenceRecordResolution = { kind: "found"; record: StoredProtocolRecord; } | { kind: "not_found"; } | { kind: "scope_forbidden"; }; export declare function resolveScopedEvidenceRecord(store: ProtocolStore, objectType: ProtocolObjectType, objectId: string, hostedIdentity: HostedEvidenceScopeIdentity | null): Promise>; export declare function evidenceRecordNotFoundResponse(c: Context, context: TransitionErrorContext): Response; export declare function hostedEvidenceScopeForbiddenResponse(c: Context, context: TransitionErrorContext): Response; export declare function respondToScopedEvidenceRecordResolution(c: Context, context: TransitionErrorContext, resolution: Exclude, { kind: "found"; }>): Response;