/**
 * webhook/dispatch.ts
 *
 * Triggers AI Literacy Framework evaluations via GitHub Actions
 * repository_dispatch events.
 *
 * When a content webhook determines that a document change affects
 * tracked evaluation areas, this module dispatches a scoped pipeline
 * run to the AILF repository.
 *
 * The dispatch uses the `external-eval` event type. The client_payload
 * conforms to the PipelineRequestSchema so the receiving workflow can
 * pass it directly to the CLI via `--config` without field translation.
 *
 * @see .github/workflows/external-eval.yml
 * @see docs/design-docs/cross-repo-eval.md
 */
import type { DispatchRequest } from "./types.js";
export interface DispatchOptions {
    /** GitHub personal access token with repo scope */
    githubToken: string;
    /** Target repository (owner/repo). Default: sanity-labs/ai-literacy-framework */
    repo?: string;
}
export interface DispatchResult {
    /** Error message on failure */
    error?: string;
    /** The HTTP status code from GitHub API */
    httpStatus: number;
    /** Whether the dispatch was accepted */
    ok: boolean;
}
/**
 * Dispatch an evaluation via GitHub Actions repository_dispatch.
 *
 * Sends a `repository_dispatch` event with the `external-eval` event type.
 * The payload includes area and task scoping so the pipeline evaluates
 * only what's needed.
 *
 * GitHub API response:
 * - 204: Dispatch accepted
 * - 404: Repository not found or token lacks access
 * - 422: Validation error
 */
export declare function dispatchEvaluation(request: DispatchRequest, options: DispatchOptions): Promise<DispatchResult>;
