import type { ApiClient } from './request';
export type CheckRedirectQuery = {
    site: string;
    path: string;
};
export type CheckRedirectResponse = {
    redirectTo: string | null;
    status?: number;
};
export type RedirectRuleRecord = {
    id: string;
    siteId: string;
    fromPath: string;
    toPath: string;
    httpStatus: number | null;
    isActive: boolean;
    createdAt?: string;
    createdBy?: string | null;
    updatedAt?: string;
};
export type ListRedirectRulesResponse = {
    redirects: RedirectRuleRecord[];
};
export type CreateRedirectRuleRequest = {
    fromPath: string;
    toPath: string;
    status?: 301 | 302 | 307 | 308;
};
export type CreateRedirectRuleResponse = {
    redirect: RedirectRuleRecord;
};
export type DeleteRedirectRuleResponse = {
    redirects: RedirectRuleRecord[];
};
export declare function listRedirectRules(apiClient: ApiClient, { siteId, options }: {
    siteId: string;
    options?: RequestInit;
}): Promise<ListRedirectRulesResponse>;
export declare function createRedirectRule(apiClient: ApiClient, { siteId, body, options, }: {
    siteId: string;
    body: CreateRedirectRuleRequest;
    options?: RequestInit;
}): Promise<CreateRedirectRuleResponse>;
export declare function deleteRedirectRule(apiClient: ApiClient, { siteId, ruleId, options }: {
    siteId: string;
    ruleId: string;
    options?: RequestInit;
}): Promise<DeleteRedirectRuleResponse>;
