import { StoredTheme } from '../Theme/types';
import { Dashboard, SaveableDashboardDefinition } from './types';
import { PartialBy } from '../typeHelpers';
import { QueryEngineConfig } from '../QueryEngineConfig/types';
export declare type RawDefinition = PartialBy<SaveableDashboardDefinition, 'isPlayground' | 'customFields'>;
export declare type RawDashboard<Definition = RawDefinition> = {
    id: string;
    parent_dashboard_id: string;
    definition: Definition;
    name?: string | null;
    theme: StoredTheme & {
        rowLimit?: number;
    };
    created_at: string;
    updated_at: string;
    metadata?: Dashboard.ExternalMetadata;
    webhook_id: string | null;
    permission: {
        scope: 'read' | 'read_write';
        token: string;
    };
};
export declare const fromRaw: (rawDashboard: RawDashboard, queryEngineConfig: QueryEngineConfig | undefined) => Omit<Dashboard, 'dataSets'>;
