import type { HandlerContext } from '@volter/world-core'; export type Row = Record; export declare const SITE = "_site"; export declare const PERSON = "_person"; export declare const APP = "_app"; export declare const CODE = "_code"; export declare const ACCESS = "_access_token"; export declare const REFRESH = "_refresh_token"; export declare const API_TOKEN = "_api_token"; export declare const PROJECT = "Project"; export declare const ISSUE = "IssueBean"; export declare const COMMENT = "Comment"; export declare const COMPONENT = "ProjectComponent"; export declare const obj: (v: unknown) => Row; export declare const arr: (v: unknown) => T[]; export declare const sha256: (ctx: Pick, v: string) => string; /** A token-shaped value drawn from the World's secret (Atlassian's are long opaque strings). */ export declare const tokenValue: (ctx: Pick, label: string) => Promise; /** Jira's error body: messages, and field errors by field. */ export declare const jiraError: (status: number, messages: string[], errors?: Row) => Response; export declare const ACCESS_TTL = 3600; type Grant = { sites: string[]; person: string; scopes: string[]; }; /** The grant a request's `Authorization: Bearer` names, while it lives. */ export declare function grantOf(ctx: HandlerContext): Grant | undefined; export {};