import type { AstroIntegration } from "astro";
export type RedirectCode = "permanent" | 301 | "temp" | 302 | "seeother" | 303 | "gone" | 410;
export type ErrorCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 410 | 412 | 415 | 418 | 420 | 422 | 426 | 429 | 451 | 500 | 501 | 502 | 503 | 504 | 505;
export interface Config {
    generateHtaccessFile?: boolean | (() => boolean) | (() => Promise<boolean>);
    errorPages?: {
        code: ErrorCode;
        document: string;
    }[];
    redirects?: {
        code?: RedirectCode;
        match: string | RegExp;
        url: string;
    }[];
    customRules?: string[];
}
export declare const integration: ({ generateHtaccessFile, errorPages, redirects, customRules }?: Config) => AstroIntegration;
