import type { DeliveryAnswerResponse, DeliveryListResponse } from "../types/outreach"; /** What every outreach call needs: where the server is, and who is asking. */ export type OutreachRequestOptions = { serverURL?: string; /** The base path for outreach, when it is not the default. */ path?: string; apiKey: string; debug?: boolean; }; export type ListDeliveriesOptions = OutreachRequestOptions & { /** 1-based. The first page when it is not given. */ page?: number; /** How many deliveries per page. */ limit?: number; }; export type AnswerDeliveryOptions = OutreachRequestOptions & { deliveryId: string; /** The user's answer, in their own words. */ text: string; /** On an approval, what they decided. */ decision?: "approve" | "deny"; }; /** A page of the inbox: what Alfred has told or asked this user outside a chat. */ export declare function listDeliveries(options: ListDeliveriesOptions): Promise; /** * Answers one delivery, which closes it and wakes the job that asked. * * A delivery somebody has already answered is a 409: the call throws a `ButlerBotAPIError` * whose `isConflict` is true and whose `body` still carries the delivery with the answer on it. */ export declare function answerDelivery(options: AnswerDeliveryOptions): Promise;