import { ComponentOptionsMixin } from 'vue';
import { ComponentProvideOptions } from 'vue';
import { DefineComponent } from 'vue';
import { ExtractPropTypes } from 'vue';
import { Header } from '@tanstack/vue-table';
import { PropType } from 'vue';
import { PublicProps } from 'vue';

declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;

declare type __VLS_Prettify<T> = {
    [K in keyof T]: T[K];
} & {};

declare type __VLS_TypePropsToRuntimeProps<T> = {
    [K in keyof T]-?: {} extends Pick<T, K> ? {
        type: PropType<__VLS_NonUndefinedable<T[K]>>;
    } : {
        type: PropType<T[K]>;
        required: true;
    };
};

declare type __VLS_WithDefaults<P, D> = {
    [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
        default: D[K];
    }> : P[K];
};

declare type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};

declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableHeaderCellProps>, {
sortId: string;
schemaDrivenHeader: undefined;
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TableHeaderCellProps>, {
sortId: string;
schemaDrivenHeader: undefined;
}>>> & Readonly<{}>, {
sortId: string;
schemaDrivenHeader: Header<any, any>;
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
    default?(_: {}): any;
}>;
export default _default;

/**
 * The SortValue with its leading hyphen/dash removed
 */
declare type SortId = string;

/**
 * Determined by whether or not there is a leading hyphen/dash in the SortValue
 */
declare type SortOrder = 'asc' | 'desc';

/**
 * A deserialized instance of a `SortValue`.
 */
declare type SortValueDeserialized = {
    id: SortId;
    order: SortOrder;
};

export declare interface TableHeaderCellProps {
    /**
     * A unique value correlated to the data in this header's column (without a leading hyphen/dash).
     * For example: `'product_name'` (with no leading dash/hyphen).
     */
    sortId?: SortValueDeserialized['id'];
    /**
     * TanStack header instance passed when Table is in schema-driven mode.
     * When provided, sorting is controlled by TanStack instead of DataView.
     * Typed as any so DataTable can pass Header<TData, unknown> without a type assertion.
     */
    schemaDrivenHeader?: Header<any, any>;
}

export { }
