blob: 1fc2c0d3fe66f3809e6be19046ef5dde42bef9a5 [file]
import type { ProfileGraphIR } from './profile-analysis.types';
import type { ProfileParserErrorCode } from './profile-analysis.parser';
export interface ProfileParseRequest {
type: 'PARSE_PROFILE';
requestId: string;
file: File;
}
export interface ProfileParseSuccess {
type: 'PARSE_SUCCESS';
requestId: string;
dag: ProfileGraphIR;
}
export interface ProfileParseFailure {
type: 'PARSE_FAILURE';
requestId: string;
code: ProfileParserErrorCode;
}
export type ProfileParseResponse = ProfileParseSuccess | ProfileParseFailure;