import type { AccessContext } from "../sharing/access.js"; import type { ShareRole } from "../sharing/schema.js"; export declare function resolveRunThreadId(runId: string): Promise; export declare function callerOwnsThread(owner: string, threadId: string | null | undefined): Promise; export declare function callerHasThreadAccess(owner: string, threadId: string | null | undefined, role?: ShareRole | "owner", ctx?: Omit): Promise; export declare function callerOwnsRun(owner: string, runId: string): Promise; export declare function callerHasRunAccess(owner: string, runId: string, role?: ShareRole | "owner", ctx?: Omit): Promise;