import { MakeJWTConfig } from './auth';
/**
 * Parameters for patching a scanner result.
 *
 * @property url - URL to PATCH
 * @property payload - JSON body to send
 */
export type PatchScannerResultParams = MakeJWTConfig & {
    url: string;
    payload: Record<string, unknown>;
};
/**
 * Parameters for posting a scanner result.
 *
 * @property url - URL to POST
 * @property payload - JSON body to send
 */
export type PostScannerResultParams = MakeJWTConfig & {
    url: string;
    payload: Record<string, unknown>;
};
/**
 * PATCH a scanner result to the AMO API, authenticating with a JWT token
 * computed from the `AMO_JWT_ISS_KEY` and `AMO_JWT_SECRET` environment
 * variables.
 *
 * @throws AMOError if the response is not ok
 */
export declare const patchScannerResult: ({ url, payload, env, }: PatchScannerResultParams) => Promise<void>;
/**
 * POST a scanner result to the AMO API, authenticating with a JWT token
 * computed from the `AMO_JWT_ISS_KEY` and `AMO_JWT_SECRET` environment
 * variables.
 *
 * @throws AMOError if the response is not ok
 */
export declare const postScannerResult: ({ url, payload, env, }: PostScannerResultParams) => Promise<void>;
