export type ApiSuccess<T> = {
    success: true;
    data: T;
    message: string;
};
export type ApiError = {
    success: false;
    data: null;
    message: string;
};
export type ApiResult<T> = ApiSuccess<T> | ApiError;
export type PaginationMeta = {
    message: string;
    current_page: number;
    from: number | null;
    last_page: number;
    path: string;
    per_page: number | string;
    to: number | null;
    total: number;
};
export type PaginatedResponse<T> = {
    data: T[];
    links?: {
        first: string | null;
        last: string | null;
        prev: string | null;
        next: string | null;
    };
    meta: PaginationMeta;
};
export declare function getErrorMessage(err: unknown): string;
export declare function toQueryString(params: Record<string, unknown>): string;
export declare function generateObjectId(): string;
