import type { HandlerContext } from '@volter/world-core'; import { type Row } from '../../../src/semantics/shared.js'; export { arr, COMMENT, COMPONENT, ISSUE, jiraError, obj, PERSON, PROJECT, type Row } from '../../../src/semantics/shared.js'; export type Caller = { site: string; siteUrl: string; person: string; }; /** The caller: a grant that covers the site the path names (`/ex/jira/{cloudId}`), or Jira's refusal. */ export declare function callerOf(ctx: HandlerContext, scope: string): Caller | Response; /** The API's base for a site, as its `self` URLs name it. */ export declare const base: (c: Pick) => string; export declare const inSite: (c: Caller, row: Row) => boolean; /** A person as Jira names one (a user bean). */ export declare function userView(ctx: HandlerContext, site: string, id: unknown): Row | null; export declare const ISSUE_TYPES: { id: string; name: string; subtask: boolean; hierarchyLevel: number; }[]; export declare const STATUSES: Record; /** The transitions a new project's workflow offers: one into each status, by id. */ export declare const TRANSITIONS: { id: string; to: string; }[]; export declare const PRIORITIES: { id: string; name: string; }[]; export declare const statusView: (c: Pick, name: string) => Row; /** The project a path names (by id or key) in the caller's site, or Jira's 404. */ export declare function projectOf(ctx: HandlerContext, c: Caller, idOrKey: unknown): Row | Response; /** The issue a path names (by id or key) in the caller's site, or Jira's 404. */ export declare function issueOf(ctx: HandlerContext, c: Caller, idOrKey: unknown): Row | Response; export declare const newProjectView: (c: Caller, p: Row) => Row; /** An issue as the API answers it, with only the fields asked when some are (`fields=status,labels`). */ export declare function issueView(ctx: HandlerContext, i: Row, fields?: string[]): Row; export declare const commentView: (ctx: HandlerContext, m: Row) => Row; export declare const projectView: (ctx: HandlerContext, c: Caller, p: Row, expandTypes?: boolean) => Row; /** The fields a request asks for: `fields` as a comma list (a query) or an array (a body). */ export declare const fieldsAsked: (v: unknown) => string[] | undefined; /** A component as the API answers it (its project by key and id). */ export declare const newComponentView: (c: Caller, k: Row) => Row; export declare const componentView: (ctx: HandlerContext, k: Row) => Row;